Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add server.js shim for backwards-compatible TypeScript execution

The Nomad entrypoint calls `exec node server.js` but the codebase
migrated to TypeScript at server/index.ts. Rather than updating every
deployment config simultaneously, add a server.js shim that registers
tsx and imports the TypeScript server.

This makes `node server.js` work everywhere without changing Nomad
job specs, Docker CMDs, or other deployment configs.

+7 -1
+2 -1
Dockerfile
··· 25 25 # Copy built frontend, server source, and tsconfig 26 26 COPY --from=build /app/dist ./dist 27 27 COPY server/ ./server/ 28 + COPY server.js ./ 28 29 COPY tsconfig.json tsconfig.server.json ./ 29 30 30 31 # Data directory for SQLite ··· 35 36 36 37 EXPOSE 3000 37 38 38 - CMD ["npx", "tsx", "server/index.ts"] 39 + CMD ["node", "server.js"]
+5
server.js
··· 1 + // Shim: loads tsx and runs the TypeScript server. 2 + // Exists for backwards compatibility with deployment entrypoints that call `node server.js`. 3 + import { register } from 'tsx/esm/api'; 4 + register(); 5 + await import('./server/index.ts');