Skip to content

Commit

Permalink
chore(core): revert sourcemaps in core
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel committed Sep 9, 2022
1 parent ff53532 commit 779cc1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ ENV NODE_ENV=production
WORKDIR /app

COPY --chown=node:node --from=builder /app/apps/core/build/index.js ./
COPY --chown=node:node --from=builder /app/apps/core/build/index.js.map ./

COPY --chown=node:node --from=schema-builder /app/node_modules/.prisma/client/schema.prisma ./
COPY --chown=node:node --from=schema-builder /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node ./

RUN yarn init -y

EXPOSE 7501

CMD ["node", "--enable-source-maps", "index.js"]
CMD ["node", "index.js"]
2 changes: 1 addition & 1 deletion apps/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean": "rm -rf .turbo dist build logs",
"dev": "nodemon --watch \"*.ts\" --exec \"ts-node\" ./src/index.ts",
"lint": "eslint src",
"build:prod": "esbuild ./src/index.ts --bundle --sourcemap --platform=node --outfile=build/index.js",
"build:prod": "esbuild ./src/index.ts --bundle --platform=node --outfile=build/index.js",
"test": "jest",
"gql:gen:types": "yarn graphql-codegen"
},
Expand Down

0 comments on commit 779cc1a

Please sign in to comment.