-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nuxt): Add sdk module to nuxt config and create client and server config files #713
Conversation
|
await traceStep('configure-sdk', async () => { | ||
await addSDKModule(nuxtConfig, { | ||
org: selectedProject.organization.slug, | ||
project: selectedProject.slug, | ||
url: selfHosted ? sentryUrl : undefined, | ||
}); | ||
|
||
await createConfigFiles(selectedProject.keys[0].dsn.public); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: I handle error handling within the respective helpers. Would it be better to throw and wrap traceStep
in a try catch?
|
||
shouldWriteFile = overwriteExistingConfigs; | ||
|
||
if (overwriteExistingConfigs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user selects "no" when asked to overwrite, we should still show them what they would need to put in those files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 updated
Tested locally on a nuxt app with various configs. The nuxt default config is taken directly from the latest nuxt version when creating a basic project using their wizard.
#skip-changelog
Closes: #707 and #708