Track frontend as regular files instead of a submodule

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Dev
2026-11-02 15:52:53 +08:00
co-authored by Cursor
parent 328b6917a3
commit 41ca22f59e
100 changed files with 7316 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
import path from 'path';
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, '.', '');
return {
server: {
port: 3000,
host: '0.0.0.0',
},
publicDir: 'static',
plugins: [react()],
define: {
'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
}
};
});