Merge pull request #173 from MAGICGrants/improvements

fix: sentry source map upload fix attempt
This commit is contained in:
Artur
2025-05-05 15:29:42 -03:00
committed by GitHub

View File

@@ -82,11 +82,11 @@ RUN mkdir /home/nextjs/.npm-global
ENV PATH=/home/nextjs/.npm-global/bin:$PATH
ENV NPM_CONFIG_PREFIX=/home/nextjs/.npm-global
ENV PRISMA_BINARY_TARGETS='["native", "rhel-openssl-1.0.x"]'
RUN npm install --quiet --no-progress -g prisma
RUN npm install --quiet --no-progress -g prisma @sentry/cli
RUN npm cache clean --force
# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
CMD ["/bin/sh", "-c", "prisma migrate deploy \
&& npm run sentry:sourcemaps \
&& node server.js"]
&& (npm run sentry:sourcemaps \
& node server.js)"]