allow host

This commit is contained in:
Samandar Turgunboyev
2025-11-10 14:22:20 +05:00
parent adb02a820a
commit a0a20e9b40

View File

@@ -4,10 +4,6 @@ import path from "path";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths"; import tsconfigPaths from "vite-tsconfig-paths";
const allowedHosts = (
process.env.VITE_ALLOWED_HOSTS || "admin.simpletravel.uz"
).split(",");
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
react(), // React uchun react(), // React uchun
@@ -22,12 +18,10 @@ export default defineConfig({
server: { server: {
host: true, host: true,
port: 5173, port: 5173,
allowedHosts,
}, },
preview: { preview: {
host: true, host: true,
port: 5263, port: 5263,
allowedHosts,
}, },
build: { build: {