Skip to content

Commit

Permalink
fix: explicitly state production mode for react-jsx in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Dec 23, 2024
1 parent a55a43d commit c8bf8aa
Show file tree
Hide file tree
Showing 3 changed files with 2,288 additions and 5,900 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ COPY --from=builder /zipline/code.json ./code.json
# clean
RUN rm -rf /tmp/* /root/*

ENV NODE_ENV=production

CMD ["node", "--enable-source-maps", "build/server"]
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "pnpm run \"/^build:.*/\"",
"build:prisma": "prisma generate",
"build:next": "next build",
"build:next": "ZIPLINE_BUILD=true next build",
"build:server": "tsup",
"dev": "TURBOPACK=1 NODE_ENV=development DEBUG=zipline tsx --require dotenv/config --enable-source-maps ./src/server",
"dev:inspector": "TURBOPACK=1 NODE_ENV=development DEBUG=zipline tsx --require dotenv/config --inspect=0.0.0.0:9229 --enable-source-maps ./src/server",
Expand All @@ -19,7 +19,7 @@
"db:prototype": "prisma db push --skip-generate && prisma generate --no-hints"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.714.0",
"@aws-sdk/client-s3": "^3.717.0",
"@fastify/cookie": "^9.4.0",
"@fastify/cors": "^9.0.1",
"@fastify/multipart": "^8.3.0",
Expand Down Expand Up @@ -57,11 +57,11 @@
"highlight.js": "^11.11.0",
"iron-session": "^8.0.4",
"isomorphic-dompurify": "^2.19.0",
"katex": "^0.16.17",
"mantine-datatable": "^7.14.5",
"katex": "^0.16.18",
"mantine-datatable": "^7.15.1",
"ms": "^2.1.3",
"multer": "1.4.5-lts.1",
"next": "^15.1.1",
"next": "^15.1.2",
"otplib": "^12.0.1",
"prisma": "^6.1.0",
"qrcode": "^1.5.4",
Expand All @@ -86,12 +86,12 @@
"@types/multer": "^1.4.12",
"@types/node": "^20.17.10",
"@types/qrcode": "^1.5.5",
"@types/react": "^19.0.1",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"eslint": "^9.17.0",
"eslint-config-next": "^15.1.1",
"eslint-config-next": "^15.1.2",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-unused-imports": "^4.1.4",
Expand Down
Loading

0 comments on commit c8bf8aa

Please sign in to comment.