allow host

This commit is contained in:
Samandar Turgunboyev
2025-11-10 12:58:17 +05:00
parent 2a2e166477
commit e7e5940d24

View File

@@ -4,7 +4,9 @@ import path from "path";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
const allowedHost = process.env.VITE_ALLOWED_HOST || "admin.simpletravel.uz";
const allowedHosts = (
process.env.VITE_ALLOWED_HOSTS || "admin.simpletravel.uz"
).split(",");
export default defineConfig({
plugins: [
@@ -24,7 +26,7 @@ export default defineConfig({
preview: {
host: true,
port: 5263,
allowedHosts: [allowedHost],
allowedHosts: allowedHosts,
},
build: {