@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user