fix: resolve Docker build failures and enrich mobile hotspot metadata#1167
Merged
bryzettler merged 5 commits intodevelopfrom Apr 3, 2026
Merged
fix: resolve Docker build failures and enrich mobile hotspot metadata#1167bryzettler merged 5 commits intodevelopfrom
bryzettler merged 5 commits intodevelopfrom
Conversation
Build fixes:
- Add `export const dynamic = "force-dynamic"` to both /rpc/[[...rest]]
and /api/v1/[[...rest]] route handlers to prevent Next.js from
attempting static page data collection on API routes
- Move transaction-resubmission background job from root layout.tsx
side-effect import to instrumentation.ts register() hook, so it only
runs at server startup and doesn't trigger db/env imports at build time
- Write dummy .env file in Dockerfile before build instead of relying on
Docker ENV, which doesn't reach Next.js 15 worker threads during the
page data collection phase
Mobile hotspot_update enrichment:
- Expand actionMetadata for mobile hotspot updates to include full
deployment info: antenna, elevation, azimuth, mechanicalDownTilt,
electricalDownTilt for WIFI; radioInfos for CBRS
- Add h3Index to actionMetadata so frontend has the on-chain hex index
- Previously only stored deploymentType ("WIFI"/"CBRS") which gave the
frontend no detail about what was actually updated
… vars SKIP_ENV_VALIDATION alone is insufficient — db.ts uses env values to construct the Postgres URL at import time, producing an invalid URL when values are undefined. Dummy values needed for valid URL syntax.
When NO_PG=true (E2E test mode), set pool min to 0 so Sequelize doesn't eagerly open connections to a non-existent database. The Sequelize instance is still created (models need it for init) but no connections are attempted until a query runs.
The background service polls the DB every 2s, producing connection errors in E2E tests where no Postgres is running.
ChewingGlass
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build fixes:
export const dynamic = "force-dynamic"to both /rpc/[[...rest]] and /api/v1/[[...rest]] route handlers to prevent Next.js from attempting static page data collection on API routesMobile hotspot_update enrichment: