Unable to upload sourcemaps from Next.js project via GitHub Actions/Docker #4812
Replies: 1 comment
-
|
Did you find a solution to this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggling to set up my Sentry project, and automatic sourcemap uploading, with a project that currently builds and pushes to a Docker image registry via GitHub Actions. I can do this from my local machine just fine, but as soon as I try to build via GitHub Actions, it fails to build and returns the following error:
I have tried the following:
SENTRY_AUTH_TOKENas an environment variablemathieu-bour/setup-sentry-cli@1.2.0to configure the CLI in advance of it actually being usedgetsentry/action-release@v1to set up a release, although I don't think this actually does anything with sourcemaps.The documentation doesn't cover how sourcemap uploading from CI/CD is intended to work. Am I meant to upload sourcemaps from my local machine first, and then disable Next.js sourcemap uploading at the CI/CD level? How do others configure automatic sourcemap uploading in a CI/CD environment for their projects? It isn't working for me, and I'm not sure if I'm missing a step in the documentation or if I'm going down a path that is not recommended.
I'm following these instructions after having used the wizard to set up some files automatically: https://docs.sentry.io/platforms/javascript/guides/nextjs
Beta Was this translation helpful? Give feedback.
All reactions