mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
Add dev config for frontend for WSL (#2506)
* Add dev config for frontend * Update package.json * Update package.json
This commit is contained in:
committed by
GitHub
parent
3ffcc7157d
commit
92a1eaa866
@@ -40,6 +40,7 @@
|
||||
"start": "npm run make-i18n && vite",
|
||||
"build": "tsc && vite build",
|
||||
"test": "vitest run",
|
||||
"dev_wsl": "VITE_WATCH_USE_POLLING=true vite",
|
||||
"preview": "vite preview",
|
||||
"make-i18n": "node scripts/make-i18n-translations.cjs",
|
||||
"prelint": "npm run make-i18n",
|
||||
|
||||
@@ -10,6 +10,7 @@ export default defineConfig(({ mode }) => {
|
||||
VITE_USE_TLS = "false",
|
||||
VITE_FRONTEND_PORT = "3001",
|
||||
VITE_INSECURE_SKIP_VERIFY = "false",
|
||||
VITE_WATCH_USE_POLLING = "false",
|
||||
} = loadEnv(mode, process.cwd());
|
||||
|
||||
const USE_TLS = VITE_USE_TLS === "true";
|
||||
@@ -34,6 +35,9 @@ export default defineConfig(({ mode }) => {
|
||||
plugins: [react(), viteTsconfigPaths()],
|
||||
clearScreen: false,
|
||||
server: {
|
||||
watch: {
|
||||
usePolling: VITE_WATCH_USE_POLLING === "true",
|
||||
},
|
||||
port: FE_PORT,
|
||||
proxy: {
|
||||
"/api": {
|
||||
|
||||
Reference in New Issue
Block a user