fix: handle non-prefixed routes on the production server
This commit is contained in:
parent
5c949e2da5
commit
2bc85085f5
3 changed files with 26 additions and 8 deletions
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue