fix: bind server to 0.0.0.0 for container deployment

This commit is contained in:
2026-04-21 23:33:21 +02:00
parent 7146edc7bb
commit 7151a0b7ba
2 changed files with 6 additions and 0 deletions

View File

@@ -23,5 +23,7 @@ COPY --from=builder /app/package.json ./package.json
EXPOSE 3000 EXPOSE 3000
ENV NODE_ENV=production ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
CMD ["node", "dist/server/server.js"] CMD ["node", "dist/server/server.js"]

View File

@@ -10,6 +10,10 @@ const isProd = process.env['NODE_ENV'] === 'production'
const config = defineConfig({ const config = defineConfig({
resolve: { tsconfigPaths: true }, resolve: { tsconfigPaths: true },
server: {
host: '0.0.0.0',
port: 3000,
},
plugins: [ plugins: [
!isProd && devtools(), !isProd && devtools(),
tailwindcss(), tailwindcss(),