sangwaritaxi_website/vite.config.ts

19 lines
395 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
export default defineConfig({
plugins: [react()],
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
},
build: {
target: 'esnext',
outDir: 'build', // Make sure this matches Dockerfile COPY path
},
server: {
port: 3000,
open: true,
},
});