mirror of
https://github.com/vee1e/bulk-questionnaire-upload.git
synced 2026-09-01 09:50:06 +00:00
- Add vercel.json with Angular build config and SPA rewrites
- Increase Angular bundle budgets to unblock production build
- Fix TS strict null error in runtime-config.ts (return _config ?? {})
- Load API_URL from /assets/config.json at bootstrap via prebuild script
- Wire getRuntimeConfig() into FormService instead of hardcoded localhost
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
1.5 KiB
JSON
46 lines
1.5 KiB
JSON
{
|
|
"name": "mform-upload",
|
|
"version": "0.0.0",
|
|
"scripts": {
|
|
"ng": "ng",
|
|
"start": "ng serve",
|
|
"prebuild": "node -e \"const fs=require('fs');const api=process.env.API_URL||'http://localhost:8000/api';fs.mkdirSync('src/assets', { recursive: true });fs.writeFileSync('src/assets/config.json', JSON.stringify({ API_URL: api }));\"",
|
|
"build": "ng build",
|
|
"watch": "ng build --watch --configuration development",
|
|
"serve:ssr:mform-upload": "node --no-deprecation dist/mform-upload/server/server.mjs",
|
|
"test": "vitest",
|
|
"test:run": "vitest run"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "^19.2.10",
|
|
"@angular/cdk": "^19.2.0",
|
|
"@angular/common": "^19.2.0",
|
|
"@angular/compiler": "^19.2.0",
|
|
"@angular/core": "^19.2.0",
|
|
"@angular/flex-layout": "^15.0.0-beta.42",
|
|
"@angular/forms": "^19.2.0",
|
|
"@angular/material": "^19.2.0",
|
|
"@angular/platform-browser": "^19.2.0",
|
|
"@angular/platform-browser-dynamic": "^19.2.0",
|
|
"@angular/platform-server": "^19.2.0",
|
|
"@angular/router": "^19.2.0",
|
|
"@angular/ssr": "^19.2.9",
|
|
"express": "^4.18.2",
|
|
"file-saver": "^2.0.5",
|
|
"rxjs": "~7.8.0",
|
|
"tslib": "^2.3.0",
|
|
"zone.js": "~0.15.0"
|
|
},
|
|
"devDependencies": {
|
|
"@angular-devkit/build-angular": "^19.2.9",
|
|
"@angular/cli": "^19.2.9",
|
|
"@angular/compiler-cli": "^19.2.0",
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^24.0.3",
|
|
"typescript": "~5.7.2",
|
|
"vitest": "^2.0.0",
|
|
"jsdom": "^25.0.0",
|
|
"@types/jsdom": "^21.1.7"
|
|
}
|
|
}
|