From 7d1b783783fe8b53a8f6ea99af57d2ccd5f90276 Mon Sep 17 00:00:00 2001 From: jqtmviyu Date: Thu, 19 Jan 2023 03:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 ++++++ .gitignore | 2 +- config/plugins.js | 7 +++++++ src/admin/webpack.config.example.js | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .env create mode 100644 config/plugins.js diff --git a/.env b/.env new file mode 100644 index 0000000..79a028c --- /dev/null +++ b/.env @@ -0,0 +1,6 @@ +HOST=0.0.0.0 +PORT=1337 +APP_KEYS=e6x7+oa1YCfr9/IorM117A==,kFbMg+KtC7y7MKCHRKCD+Q==,VjG6I5xNWZ6ZMWnligDMKw==,LHVktZnO1pR7422mae/CuQ== +API_TOKEN_SALT=HxNwjeCL/vJA8vvsvTsWwA== +ADMIN_JWT_SECRET=xTjiDidZeh3t0rjp21KTKg== +JWT_SECRET=+J58VTH+GVgYw5ezQGb6zQ== diff --git a/.gitignore b/.gitignore index 2ed5eaf..9f477de 100644 --- a/.gitignore +++ b/.gitignore @@ -106,7 +106,7 @@ coverage # Strapi ############################ -.env +# .env license.txt exports *.cache diff --git a/config/plugins.js b/config/plugins.js new file mode 100644 index 0000000..cd5319c --- /dev/null +++ b/config/plugins.js @@ -0,0 +1,7 @@ +module.exports = ({ env }) => ({ + //... + 'import-export-entries': { + enabled: true, + }, + //... +}); \ No newline at end of file diff --git a/src/admin/webpack.config.example.js b/src/admin/webpack.config.example.js index 1ca45c2..bc9228e 100644 --- a/src/admin/webpack.config.example.js +++ b/src/admin/webpack.config.example.js @@ -1,9 +1,12 @@ 'use strict'; +const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin'); + /* eslint-disable no-unused-vars */ module.exports = (config, webpack) => { // Note: we provide webpack above so you should not `require` it // Perform customizations to webpack config // Important: return the modified config + config.plugins.push(new MonacoWebpackPlugin()); return config; };