fix: handle non-prefixed routes on the production server

This commit is contained in:
Aarnav Tale
2024-11-06 14:29:04 -05:00
parent 5c949e2da5
commit 2bc85085f5
3 changed files with 26 additions and 8 deletions
+1 -2
View File
@@ -13,11 +13,10 @@ RUN pnpm prune --prod
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/build /app/build
COPY --from=build /app/server.mjs /app/server.mjs
COPY --from=build /app/node_modules /app/node_modules
RUN echo '{"type":"module"}' > /app/package.json
EXPOSE 3000
ENV NODE_ENV=production
ENV HOST=0.0.0.0
CMD [ "./server.mjs" ]
CMD [ "node", "./build/headplane/server.js" ]