Merge pull request #10 from SamandarTurgunboyev/samandar

allow host
This commit is contained in:
Samandar Turg'unboev
2025-11-10 11:48:02 +05:00
committed by GitHub

View File

@@ -4,6 +4,8 @@ import path from "path";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
const allowedHost = process.env.VITE_ALLOWED_HOST || "admin.simpletravel.uz";
export default defineConfig({
plugins: [
react(), // React uchun
@@ -20,9 +22,9 @@ export default defineConfig({
port: 5173,
},
preview: {
host: true, // Production (vite preview) uchun
host: true,
port: 5263,
allowedHosts: ["admin.simpletravel.uz"], // ✅ bu yer muhim
allowedHosts: [allowedHost],
},
build: {