build: set base path to /aura/ for subpath deployment
parent
9536c2c927
commit
83e4fab788
|
|
@ -5,7 +5,9 @@ import react from '@vitejs/plugin-react';
|
|||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '');
|
||||
const target = env.VITE_API_TARGET || 'https://api.hoyidata.com';
|
||||
|
||||
return {
|
||||
base: '/aura/', // <-- 关键修改:设置构建的基础路径
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 3001,
|
||||
|
|
|
|||
Loading…
Reference in New Issue