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