bp_wb/vite.config.js
mmabdalla c14f186263 Initial project setup: Create directory structure and configuration files
- Created manifest.yaml with Node.js runtime and routes
- Set up package.json with React, TypeScript, Vite, and dependencies
- Created TypeScript and Vite configuration files
- Set up ESLint and Prettier
- Created complete directory structure (frontend, backend, migrations)
- Created initial database schema migration
- Set up Express server with route handlers
- Created frontend entry point files
- Added version.txt with build 0.1.0.001
2025-12-28 14:59:01 +02:00

34 lines
899 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './frontend'),
'@editor': path.resolve(__dirname, './frontend/editor'),
'@renderer': path.resolve(__dirname, './frontend/renderer'),
'@components': path.resolve(__dirname, './frontend/components'),
'@backend': path.resolve(__dirname, './backend'),
'@api': path.resolve(__dirname, './backend/api'),
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
});