My problem is: I can't get both Angular SSR and Functions to work together properly — I can only make one or the other work, depending on which _routes.json Cloudflare picks up.
My build/deploy command: ng build && node ./tools/copy-files.mjs && node ./tools/alter-polyfills.mjs && wrangler pages deploy dist/cloudflare
Since _routes.json from src/ ends up in dist/cloudflare, it always overrides the one in functions/, so I can’t have both Angular and API routing coexist correctly.
I thought about rendering the frontend via a function on /, but I believe Angular SSR already handles that properly without needing a dedicated function route.
How can I configure this so that both the Angular frontend and the API (under /auth, etc.) work together as intended?