diff --git a/.env.production b/.env.production index d1bc400..985148c 100644 --- a/.env.production +++ b/.env.production @@ -9,3 +9,4 @@ VITE_APP_VERSION=1.0.0 # Environment NODE_ENV=production + diff --git a/docker-compose.yml b/docker-compose.yml index f9c4cb5..ad84c84 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: - VITE_APP_NAME=${VITE_APP_NAME} container_name: simple-travel-admin ports: - - "5263:4173" + - "5263:5263" env_file: - .env.production restart: unless-stopped diff --git a/vite.config.ts b/vite.config.ts index ceca0a8..00aa6fc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -18,7 +18,8 @@ export default defineConfig({ server: { host: true, port: 5173, - }, preview: { + }, + preview: { host: true, // Production (vite preview) uchun port: 5263, allowedHosts: ["admin.simpletravel.uz"], // ✅ bu yer muhim