mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add proxy server.
This commit is contained in:
parent
27d88cee08
commit
c8c7df7c3c
@ -12,5 +12,15 @@ export default defineConfig({
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 3001,
|
||||
proxy: process.env.NEKO_HOST ? {
|
||||
'/api': {
|
||||
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
}
|
||||
} : undefined
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user