fix: bind server to 0.0.0.0 for container deployment
This commit is contained in:
@@ -23,5 +23,7 @@ COPY --from=builder /app/package.json ./package.json
|
||||
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3000
|
||||
|
||||
CMD ["node", "dist/server/server.js"]
|
||||
|
||||
@@ -10,6 +10,10 @@ const isProd = process.env['NODE_ENV'] === 'production'
|
||||
|
||||
const config = defineConfig({
|
||||
resolve: { tsconfigPaths: true },
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3000,
|
||||
},
|
||||
plugins: [
|
||||
!isProd && devtools(),
|
||||
tailwindcss(),
|
||||
|
||||
Reference in New Issue
Block a user