19 lines
549 B
JavaScript
19 lines
549 B
JavaScript
import path from 'node:path';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
// The reference app resolves `@/*` through the Base44 Vite plugin. This demo is
|
|
// backend-free, so the alias is declared directly.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(import.meta.dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
// Honor a port assigned by the environment; fall back to Vite's default.
|
|
port: process.env.PORT ? Number(process.env.PORT) : 5173,
|
|
},
|
|
});
|