Skip to content

Allow configuring backend URLs at container startup - #1100

Open
yzxcj797 wants to merge 1 commit into
drawdb-io:mainfrom
yzxcj797:fix/runtime-backend-url-1025
Open

Allow configuring backend URLs at container startup#1100
yzxcj797 wants to merge 1 commit into
drawdb-io:mainfrom
yzxcj797:fix/runtime-backend-url-1025

Conversation

@yzxcj797

Copy link
Copy Markdown

Summary

  • generate backend configuration when the Docker container starts instead of baking it into the Vite bundle
  • use runtime backend URLs for gist and email requests while preserving build-time configuration as a fallback
  • safely encode runtime values, prevent stale config caching, and document prebuilt-image usage

Fixes #1025

Testing

  • npm test - 7 passed
  • npm run lint - passed
  • npm run build - passed (only existing dependency/chunk-size warnings)
  • npx prettier --check ... on all changed supported files - passed
  • bash -n docker/40-drawdb-runtime-config.sh - passed
  • entrypoint execution test covers Unicode, quotes, newlines, </script>, and ampersands

Docker Desktop was unavailable locally, so the complete image was not started. The production entrypoint script itself was executed and its generated JavaScript was parsed in the regression test.

AI assistance

OpenAI Codex assisted with diagnosis, implementation, tests, and review. The final diff and behavior were reviewed and validated locally.

@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

@yzxcj797 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Cannot change backend URL when using docker image

1 participant