Skip to content

Conversation

@trickpatty
Copy link
Owner

The frontend was configured to call non-existent custom domains
(api.luminous.app, api-stg.luminous.app). The actual API runs on
Azure App Service with auto-generated hostnames.

Changes:

  • Update production environment to use relative /api URL
  • Update staging environment to use relative /api URL
  • Add staticwebapp.config.json for SPA routing and API configuration
  • Link App Service as backend to Static Web App via Bicep
  • Angular assets updated to include SWA config in build output

This enables Azure Static Web Apps to proxy /api/* requests to the
linked App Service backend, avoiding CORS issues and hardcoded URLs.

Applies to: dev, stg, and prd environments

…kend

The frontend was configured to call non-existent custom domains
(api.luminous.app, api-stg.luminous.app). The actual API runs on
Azure App Service with auto-generated hostnames.

Changes:
- Update production environment to use relative /api URL
- Update staging environment to use relative /api URL
- Add staticwebapp.config.json for SPA routing and API configuration
- Link App Service as backend to Static Web App via Bicep
- Angular assets updated to include SWA config in build output

This enables Azure Static Web Apps to proxy /api/* requests to the
linked App Service backend, avoiding CORS issues and hardcoded URLs.

Applies to: dev, stg, and prd environments
Previously all environments used `npm run build:prod`, ignoring the
staging environment configuration.

Changes:
- Use matrix strategy to build for dev, stg, and prd environments
- Each environment uses its appropriate build configuration
- Deploy jobs now download environment-specific artifacts

Build configurations:
- dev: production (uses environment.production.ts)
- stg: stg (uses environment.stg.ts)
- prd: production (uses environment.production.ts)
Added dedicated environment for deployed dev:
- environment.dev.ts with dev-specific WebAuthn rpId
- Angular build configuration for dev
- npm scripts: build:dev, start:dev
- Updated workflow to use dev config for dev deployments

Environment configurations:
- development (local): localhost:5000
- dev (deployed): /api, rpId: dev.luminous.app
- stg (deployed): /api, rpId: stg.luminous.app
- production (deployed): /api, rpId: luminous.app
@trickpatty trickpatty merged commit 40c0bb1 into main Dec 26, 2025
11 checks passed
@trickpatty trickpatty deleted the claude/fix-server-connection-ctayB branch December 26, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants