mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐛 Fix issue with running n8n under subfolder (#2816)
This commit is contained in:
@@ -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 : '/',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user