1
0
Fork 0

Compare commits

...

3 commits

Author SHA1 Message Date
805f6dee84 v0.12.12 - bake the arena origin into the client build 2026-10-19 14:06:04 -04:00
306952fbaf docs: add v0.12.12 changelog entry 2026-10-19 14:06:04 -04:00
2b5f274886 fix(docker): pass NEXT_PUBLIC_ARENA_URL into the production build
Coolify marks this variable build-time and passes it as a build arg, but
the builder stage never declared it, so `next build` saw an empty value
and inlined nothing. The client transport reads
`process.env.NEXT_PUBLIC_ARENA_URL` with dot access, so an empty build
value silently left every install on the HTTP fallback path.

Declare the arg and forward it through ENV before the build, the same way
the GIT_* build args are handled.
2026-10-19 14:05:43 -04:00
3 changed files with 14 additions and 1 deletions

View file

@ -1,5 +1,13 @@
# Changelog
# v0.12.12
### Fixes
- Various bug fixes and improvements.
---
# v0.12.11
### Fixes

View file

@ -130,6 +130,11 @@ ENV SOURCE_COMMIT=$SOURCE_COMMIT \
GIT_COMMIT_HASH=$GIT_COMMIT_HASH \
GIT_COMMIT_DATE=$GIT_COMMIT_DATE \
GIT_COMMIT_SUBJECT=$GIT_COMMIT_SUBJECT
# Public arena origin for the client bundle. Next.js inlines NEXT_PUBLIC_*
# at build time, and Coolify passes build-time variables as build args; the
# bare ARG preserves the injected value and ENV forwards it to the build.
ARG NEXT_PUBLIC_ARENA_URL
ENV NEXT_PUBLIC_ARENA_URL=$NEXT_PUBLIC_ARENA_URL
RUN bun run build
# ───────────────────────── runner-arena ────────────────────────────

View file

@ -1,6 +1,6 @@
{
"name": "polaris-task-force",
"version": "0.12.11",
"version": "0.12.12",
"description": "Web app for the Arma 3 unit Polaris Task Force. Uses Next.js for client- and server-side rendering, with a Postgres database and some other neat libraries.",
"license": "MIT",
"type": "module",