mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add frontend nginx image
This commit is contained in:
1 parent
fcaa088a31
commit
e54ae32960
6 files changed
+50
-6
No files matched your search
+1
-2
@@ -7,9 +7,8 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: `${process.env.API_TARGET || 'http://localhost:3000'}/api/v1`,
|
||||
target: process.env.API_TARGET || 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/socket.io': {
|
||||
target: process.env.API_TARGET || 'ws://localhost:3000',
|
||||
|
||||
Reference in new issue
Block a user