mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
🐛 Fix issue with running n8n under subfolder (#2816)
This commit is contained in:
parent
8fc1095d1e
commit
d85934a855
|
@ -1,5 +1,6 @@
|
|||
// The Vue build version to load with the `import` command
|
||||
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
||||
import './public_path';
|
||||
import Vue from 'vue';
|
||||
|
||||
import './plugins';
|
||||
|
|
2
packages/editor-ui/src/public_path.js
Normal file
2
packages/editor-ui/src/public_path.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
// setting webpack publickPath on the fly to fix MonacoWebpackPlugin errors
|
||||
export default __webpack_public_path__ = window.BASE_PATH === '/%BASE_PATH%/' ? '/' : window.BASE_PATH;
|
|
@ -37,5 +37,5 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
},
|
||||
publicPath: process.env.VUE_APP_PUBLIC_PATH && process.env.VUE_APP_PUBLIC_PATH !== '/%BASE_PATH%/' ? process.env.VUE_APP_PUBLIC_PATH : '/',
|
||||
publicPath: process.env.VUE_APP_PUBLIC_PATH ? process.env.VUE_APP_PUBLIC_PATH : '/',
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue