🐛 Fix issue with running n8n under subfolder (#2816)

This commit is contained in:
Michael Kret 2022-02-24 18:17:24 +02:00 committed by GitHub
parent 8fc1095d1e
commit d85934a855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -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';

View 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;

View file

@ -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 : '/',
};