sentry-docs
sentry-docs copied to clipboard
add directions for non-vercel prod setup for next.js
Core or SDK?
Platform/SDK
Which part? Which one?
Next.js
Description
From Slack:
- i need to expose auth token inside of cloud builder which is more complicated than exposing it in something like google cloud run
- you basically need docker args, and in GCP you need substitutions for those
Suggested Solution
- need docker and/or google cloud builder specific instructions
- that could be a single page detailing how to get the auth token in (likely under Configuration)
- embed this information or clearly direct the user on what to do
- short version:
- create auth token with only the project:releases scope
- you bind _SENTRY_AUTH_TOKEN in cloud builder's substitutions
- you add ARG SENTRY_AUTH_TOKEN, ENV SENTRY_AUTH_TOKEN $SENTRY_AUTH_TOKEN in your Dockerfile
- you add --build-arg SENTRY_AUTH_TOKEN=$_SENTRY_AUTH_TOKEN to your cloudbuilder config see also https://github.com/getsentry/atlas/blob/master/frontend/cloudbuild.yaml
@AbhiPrasad - can you review and make sure I captured everything here?
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
@AbhiPrasad - nudge
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Routing to @getsentry/team-web-sdk-frontend for triage. ⏲️
Testing this out - I think this captures what it takes to run NextJS in a non-vercel environment. We can def improve the docs here!
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀