Merge pull request #13 from SamandarTurgunboyev/samandar

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

View File

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