- Deleted the `import_plans.py`, `run_tests.py`, and `test_run.py` scripts as they are no longer needed. - Updated the initial migration dependency in `0001_initial.py` to reflect recent changes in the `igny8_core_auth` app. - Enhanced the implementation plan documentation to include new phases and updates on the site builder project. - Updated the `vite.config.ts` and `package.json` to integrate testing configurations and dependencies for the site builder.
37 lines
1012 B
TypeScript
37 lines
1012 B
TypeScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
const sharedPathCandidates = [
|
|
path.resolve(__dirname, '../frontend/src/components/shared'),
|
|
path.resolve(__dirname, '../../frontend/src/components/shared'),
|
|
'/frontend/src/components/shared',
|
|
];
|
|
const sharedComponentsPath = sharedPathCandidates.find((candidate) => fs.existsSync(candidate)) ?? sharedPathCandidates[0];
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@shared': sharedComponentsPath,
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
setupFiles: './src/setupTests.ts',
|
|
globals: true,
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5175,
|
|
allowedHosts: ['builder.igny8.com'],
|
|
fs: {
|
|
allow: [path.resolve(__dirname, '..'), sharedComponentsPath],
|
|
},
|
|
},
|
|
});
|