allow host
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user