Add password auth, business browsing, dev proxy, and production env.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-23 13:14:52 +03:30
co-authored by Cursor
parent 3df62f9c6e
commit e07527c1db
23 changed files with 736 additions and 37 deletions
+15
View File
@@ -2,6 +2,8 @@ import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath, URL } from 'node:url';
const API_TARGET = 'https://api.montime.ir';
export default defineConfig({
plugins: [vue()],
resolve: {
@@ -11,5 +13,18 @@ export default defineConfig({
},
server: {
port: 5173,
proxy: {
'/api': {
target: API_TARGET,
changeOrigin: true,
secure: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
'/uploads': {
target: API_TARGET,
changeOrigin: true,
secure: true,
},
},
},
});