mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add Vite proxy, change terminal to other channel
This commit is contained in:
1 parent
c3e735b627
commit
c248004484
5 files changed
+11
-8
No files matched your search
+6
-2
@@ -7,8 +7,12 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
// target: 'http://localhost:3000', // the server url
|
||||
target: 'http://odyssey.wancat.cc ',
|
||||
target: 'http://localhost:3000/api/v1',
|
||||
rewrite: (path) => path.replace(/^\/api/, ''), // Optional: remove "/api" prefix from the path
|
||||
},
|
||||
'/socket.io': {
|
||||
target: 'ws://localhost:3000',
|
||||
// target: 'wss://odyssey.wancat.cc',
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user