15 lines
479 B
TypeScript
15 lines
479 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
// Build output goes to frontend/dist; a deploy step copies it to the served
|
|
// location (static/ for prod, static/next/ for staging).
|
|
// - base defaults to '/' (production, served at map.intense-sale.ru/)
|
|
// - VITE_BASE=/next/ npm run build → staging, served at map.intense-sale.ru/next/
|
|
export default defineConfig({
|
|
root: '.',
|
|
base: process.env.VITE_BASE || '/',
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
},
|
|
});
|