Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,19 @@ projects:
staticPublishPath: out
pullRequestPreviewsEnabled: true
envVars:
# API URL - set to the backend service's public URL after first deploy
# API URL - auto-injected from the backend service's public URL.
# `fromService` + `envVarKey` pulls Render's auto-injected
# RENDER_EXTERNAL_URL (https://<slug>-XXXX.onrender.com), resolved
# at build time before this static site builds — so NEXT_PUBLIC_API_URL
# is baked into the bundle with the real, suffix-included URL (no
# manual post-deploy step, no guessing the -XXXX suffix). This works
# without a cyclic dependency because the backend defaults CORS to
# "*" and does not reference this frontend's URL (one-directional).
- key: NEXT_PUBLIC_API_URL
sync: false
fromService:
name: pydantic-agents-workflows-api
type: web
envVarKey: RENDER_EXTERNAL_URL
routes:
- type: rewrite
source: /*
Expand Down