Skip to content

fix: serve the production web app in Docker - #118

Merged
Rasalas merged 1 commit into
mainfrom
t3/fix-docker-self-hosting
Nov 18, 2026
Merged

Rasalas merged 1 commit into
mainfrom
t3/fix-docker-self-hosting

Conversation

@Rasalas

@Rasalas Rasalas commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Firefox blocked the stylesheet when Docker served the app's source files. The container now serves the Vite production build from the root URL on port 3000.

- serve -s . -l 3000
+ npm run build -- --base=/
+ serve dist -l 3000

Evidence

  • Before the fix, Firefox reported NS_ERROR_CORRUPTED_CONTENT for /src/styles.css.
  • After rebuilding with Docker Compose, Firefox loaded the bundled CSS and JavaScript and displayed a test email. Missing assets and source paths returned 404.
  • All 661 Jest tests passed. ESLint and the default web build also passed.

Merge risk

Reversible by reverting the commit. The changes apply to the Docker image and its setup instructions.

Closes #117.

Created with GPT-6.2 Sol in Codex through T3 Code.

@Rasalas
Rasalas merged commit 73e5d50 into main Nov 18, 2026
6 checks passed
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.

Self hosting Webapp

1 participant