Merge pull request #11 from SamandarTurgunboyev/samandar

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

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: {