This commit is contained in:
2026-04-24 12:21:33 +08:00
parent 3528980645
commit 70b5a7cf73
515 changed files with 14971 additions and 6831 deletions

View File

@@ -17,13 +17,14 @@ export default defineConfig(({mode}) => {
'**/public/generated-custom-world-scenes/**',
'**/public/generated-qwen-sprites/**',
];
const backendStack = (env.GENARRATIVE_BACKEND_STACK || 'node').trim().toLowerCase();
const backendStack = (env.GENARRATIVE_BACKEND_STACK || 'rust').trim().toLowerCase();
const nodeServerTarget =
env.NODE_SERVER_TARGET ||
'http://127.0.0.1:8081';
const rustServerTarget =
env.RUST_SERVER_TARGET ||
'http://127.0.0.1:3000';
env.GENARRATIVE_API_TARGET ||
`http://127.0.0.1:${env.GENARRATIVE_API_PORT || '3100'}`;
const runtimeServerTarget =
env.GENARRATIVE_RUNTIME_SERVER_TARGET ||
(backendStack === 'rust' ? rustServerTarget : nodeServerTarget);