Commit ee37fe4
committed
feat(terraform): manage NEXT_PUBLIC_BACKEND via Terraform
Adds vercel_project_environment_variable.backend_url with value=""
to infra/terraform/vercel.tf. The frontend code uses
process.env.NEXT_PUBLIC_BACKEND as a prefix for fetch() calls;
an empty value forces relative URLs (e.g. /login), which Vercel
then rewrites to the backend via vercel.json.
Previously documented as a manual Vercel dashboard step; now
managed in version control alongside the rest of the env vars.
terraform validate: passes.1 parent 8b3e9cb commit ee37fe4
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments