Files
kamaskandClaude Sonnet 5.5 bf72af9ef4 feat(dev): proxy /pb to PocketBase in ng serve
Add proxy.conf.mjs mirroring `location /pb/` from nginx: the prefix is
stripped, target comes from PB_URL (empty value falls back to the default,
same as the SSR provider). Cover the config with tests in tests/lint and
update docs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 20:24:13 +03:00

94 lines
3.4 KiB
JSON

{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "npm"
},
"newProjectRoot": "projects",
"projects": {
"pchelpcrm": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "ksk",
"architect": {
"build": {
"builder": "@angular/build:application",
"options": {
"browser": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": ["src/styles.css"],
"server": "src/main.server.ts",
"outputMode": "server",
"security": {
"allowedHosts": []
},
"ssr": {
"entry": "src/server.ts"
}
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "4kB",
"maximumError": "8kB"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"options": {
"proxyConfig": "proxy.conf.mjs"
},
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "pchelpcrm:build:production"
},
"development": {
"buildTarget": "pchelpcrm:build:development"
}
},
"defaultConfiguration": "development"
},
"test": {
"builder": "@angular/build:unit-test",
"options": {
"exclude": ["**/*.integration.spec.ts"]
}
},
"test-integration": {
"builder": "@angular/build:unit-test",
"options": {
"include": ["**/*.integration.spec.ts"],
"runnerConfig": "vitest.integration.config.mts",
"watch": false
}
}
}
}
}
}