@@ -4,7 +4,9 @@ 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 allowedHost = process.env.VITE_ALLOWED_HOST || "admin.simpletravel.uz";
|
const allowedHosts = (
|
||||||
|
process.env.VITE_ALLOWED_HOSTS || "admin.simpletravel.uz"
|
||||||
|
).split(",");
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -24,7 +26,7 @@ export default defineConfig({
|
|||||||
preview: {
|
preview: {
|
||||||
host: true,
|
host: true,
|
||||||
port: 5263,
|
port: 5263,
|
||||||
allowedHosts: [allowedHost],
|
allowedHosts: allowedHosts,
|
||||||
},
|
},
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
|
|||||||
Reference in New Issue
Block a user