diff --git a/frontend/config/paths.js b/frontend/config/paths.js index 2d1725fb4d..5164270015 100644 --- a/frontend/config/paths.js +++ b/frontend/config/paths.js @@ -1,4 +1,4 @@ -'use strict'; + const path = require('path'); const fs = require('fs'); @@ -22,7 +22,7 @@ const resolveApp = relativePath => path.resolve(appDirectory, relativePath); // ); // reset by custom -const HOST = process.env.HOST || '0.0.0.0'; +const HOST = '127.0.0.1'; const PORT = process.env.PORT || '3000'; const publicPath = process.env.PUBLIC_PATH || '/assets/bundles/'; const publicUrlOrPath = `http://${HOST}:${PORT}${publicPath}`; @@ -79,5 +79,4 @@ module.exports = { }; - module.exports.moduleFileExtensions = moduleFileExtensions; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 321d536eab..43fbeb4f1b 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -16,7 +16,7 @@ "@gatsbyjs/reach-router": "2.0.1", "@seafile/react-image-lightbox": "4.0.2", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "2.0.27", + "@seafile/sdoc-editor": "2.0.28", "@seafile/seafile-calendar": "0.0.28", "@seafile/seafile-editor": "2.0.1", "@seafile/stldraw-editor": "1.0.1", @@ -5297,9 +5297,9 @@ "license": "MIT" }, "node_modules/@seafile/sdoc-editor": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-2.0.27.tgz", - "integrity": "sha512-90tGBMXFe6nuiGUtCqFmILssLL41PEaSn5jwxg+xJBD05uaWUQmT98JUDX6YYas9AmgebOA8pIOJCXUwlE3gGg==", + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-2.0.28.tgz", + "integrity": "sha512-7mbXQ0JxuitxaeC4pIdqg+aW2Aos2E03/CSHLaXurLDFsu1PGHUWLlPR0+KAIH1MKeRYl+9SATryKk8UKyQACA==", "dependencies": { "@seafile/print-js": "1.6.6", "@seafile/react-image-lightbox": "4.0.0", diff --git a/frontend/package.json b/frontend/package.json index c2cf643581..31d43a53ac 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,7 +11,7 @@ "@gatsbyjs/reach-router": "2.0.1", "@seafile/react-image-lightbox": "4.0.2", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "2.0.27", + "@seafile/sdoc-editor": "2.0.28", "@seafile/seafile-calendar": "0.0.28", "@seafile/seafile-editor": "2.0.1", "@seafile/stldraw-editor": "1.0.1",