Skip to content

Commit 48e4fb5

Browse files
Remove redux from production build (#8)
1 parent 71c2995 commit 48e4fb5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dev.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ VOLUME ["/app"]
66

77
COPY package*.json /app/
88

9+
ENV NEXT_TELEMETRY_DISABLED 1
10+
ENV IS_DEV 1
11+
912
RUN npm install --also=dev
1013

1114
ENTRYPOINT /usr/local/bin/npm run dev

next.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4-
swcMinify: true
4+
swcMinify: true,
5+
env: {
6+
IS_DEV: process.env.IS_DEV,
7+
}
58
}
69

710

0 commit comments

Comments
 (0)