fix: include server/ in Docker image and fix Vite ssrLoadModule path
Some checks are pending
Build / build (push) Waiting to run
Deploy / deploy (push) Waiting to run
Lint & Type Check / lint (push) Waiting to run
Security Scan / semgrep (push) Waiting to run
Security Scan / dependency-check (push) Waiting to run
Test / test (18.x) (push) Waiting to run
Test / test (20.x) (push) Waiting to run

- Remove 'server' from .dockerignore so the Express server is baked into
  the image (was being excluded, causing 'Cannot find module' on startup)
- Switch from import("./server") to server.ssrLoadModule("/server/index.ts")
  so Vite resolves the path from the project root, not the temp compile dir

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
AeThex 2026-04-15 00:36:35 +00:00
parent 885ea76d12
commit 446ad7159c

View file

@ -35,7 +35,6 @@ data
.env
load-ids.txt
server
tmp
types
.git