sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

add directions for non-vercel prod setup for next.js

Open imatwawana opened this issue 3 years ago • 8 comments

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

imatwawana avatar Apr 07 '22 18:04 imatwawana

@AbhiPrasad - can you review and make sure I captured everything here?

imatwawana avatar Apr 07 '22 18:04 imatwawana

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 🥀

github-actions[bot] avatar Apr 29 '22 00:04 github-actions[bot]

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 🥀

github-actions[bot] avatar May 25 '22 00:05 github-actions[bot]

@AbhiPrasad - nudge

imatwawana avatar May 25 '22 14:05 imatwawana

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 🥀

github-actions[bot] avatar Jun 16 '22 00:06 github-actions[bot]

Routing to @getsentry/team-web-sdk-frontend for triage. ⏲️

getsentry-release avatar Jun 17 '22 15:06 getsentry-release

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!

AbhiPrasad avatar Jun 17 '22 15:06 AbhiPrasad

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 🥀

github-actions[bot] avatar Jul 12 '22 00:07 github-actions[bot]