mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
- Implemented ExamStageActions component to manage actions related to exam booking and payment based on application status. - Added mock-base-query for development, providing a partial mock backend for various API endpoints. - Introduced mock-data for simulating responses in the mock-base-query, covering profiles, vessels, applications, licenses, exams, and notifications.
24 lines
803 B
TypeScript
24 lines
803 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
|
|
export default defineConfig({
|
|
root: __dirname,
|
|
// Env lives at the workspace root, shared with the backoffice — without this
|
|
// Vite looks in apps/portal and VITE_BASE_API_URL silently falls back to its
|
|
// built-in default.
|
|
envDir: '../../',
|
|
cacheDir: '../../node_modules/.vite/apps/portal',
|
|
server: { port: 4200, host: 'localhost' },
|
|
preview: { port: 4200, host: 'localhost' },
|
|
plugins: [react(), nxViteTsPaths()],
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom', 'react-router-dom', '@tanstack/react-query'],
|
|
},
|
|
build: {
|
|
outDir: '../../dist/apps/portal',
|
|
emptyOutDir: true,
|
|
reportCompressedSize: true,
|
|
},
|
|
});
|