fix: reset getProxyOptions code and enabled sourcemap
This commit is contained in:
parent
b01b967436
commit
a4ee48733f
@ -9,17 +9,7 @@ export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
port: 8080,
|
||||
// proxy: getProxyOptions({ port: webserver_port }),
|
||||
proxy: {
|
||||
'^/(app|login|api|assets|files)': {
|
||||
target: `http://127.0.0.1:${webserver_port}`,
|
||||
ws: true,
|
||||
router: function (req) {
|
||||
const site_name = req.headers.host.split(':')[0]
|
||||
return `http://${site_name}:${webserver_port}`
|
||||
},
|
||||
},
|
||||
},
|
||||
proxy: getProxyOptions({ port: webserver_port }),
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
@ -29,7 +19,7 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: `../${path.basename(path.resolve('..'))}/public/frontend`,
|
||||
emptyOutDir: true,
|
||||
target: 'es2015',
|
||||
sourcemap: true,
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['frappe-ui > feather-icons', 'showdown', 'engine.io-client'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user