We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e37443d commit e1b4741Copy full SHA for e1b4741
Dockerfile
@@ -19,6 +19,9 @@ FROM node:24-alpine AS builder
19
WORKDIR /app
20
COPY . .
21
22
+# Set NODE_ENV to production for build
23
+ENV NODE_ENV=production
24
+
25
# Accept build arguments for NEXT_PUBLIC environment variables
26
ARG NEXT_PUBLIC_APP_URL
27
ENV NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL
next.config.ts
@@ -20,6 +20,9 @@ const nextConfig: NextConfig = {
reactCompiler: true,
rewrites: async () => {
+ if (process.env.NODE_ENV === 'production') {
+ return []
+ }
return [
{
28
source: '/api/:path*',
0 commit comments