diff --git a/replit.md b/replit.md index 99012374..efd4809f 100644 --- a/replit.md +++ b/replit.md @@ -59,6 +59,7 @@ npm start # Start production server ### Development - The development server runs on **port 5000** (required for Replit's webview) - Host is set to `0.0.0.0` to allow Replit proxy access +- `allowedHosts: true` configured to allow Replit's dynamic proxy hostnames - Vite HMR is configured for proper hot reload in Replit environment ### Deployment diff --git a/vite.config.ts b/vite.config.ts index a0e9da48..b8f0e83f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,6 +8,7 @@ export default defineConfig(({ mode }) => ({ host: "0.0.0.0", port: 5000, strictPort: true, + allowedHosts: true, hmr: { clientPort: 5000, },