Commit cfbf623
committed
fix: let self-hosted web builds bake their own public URL
The web Dockerfile hardcodes NEXT_PUBLIC_WEB_URL=http://localhost:3000. Next
inlines NEXT_PUBLIC_* into the client bundle, so that value reaches the
browser no matter what WEB_URL or CAP_URL says at runtime: share links,
embeds, oEmbed and the CORS allowlist all use localhost on a self-hosted
build. Back the ENV with an ARG of the same default so a build can pass
--build-arg NEXT_PUBLIC_WEB_URL=... without changing the published image.1 parent 284ae24 commit cfbf623
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
0 commit comments