migrate from hono
This commit is contained in:
@@ -29,15 +29,8 @@ export default defineConfig(() => {
|
||||
allow: ['.', './node_modules', '../node_modules']
|
||||
},
|
||||
// Dev only: allow access via any host/LAN IP without hardcoding it.
|
||||
allowedHosts: true,
|
||||
port: 2080,
|
||||
proxy: {
|
||||
'/api': {
|
||||
// The vite dev server and Hono proxy run on the same host.
|
||||
target: `http://127.0.0.1:3456`,
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
allowedHosts: true as true,
|
||||
port: 2080
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user