Skip to content
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

exp setup sentry: Fix file extension #9829

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/cli/src/commands/experimental/setupSentryHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { writeFile } from '../../lib'
const PATHS = getPaths()

export const handler = async ({ force }) => {
const extension = isTypeScriptProject ? 'ts' : 'js'
const extension = isTypeScriptProject() ? 'ts' : 'js'

const notes = []

Expand Down Expand Up @@ -85,9 +85,9 @@ export const handler = async ({ force }) => {
'',
'export const handler = createGraphQLHandler({',
'extraPlugins: [useSentry({',
'includeRawResult: true,',
'includeResolverArgs: true,',
'includeExecuteVariables: true,',
' includeRawResult: true,',
' includeResolverArgs: true,',
' includeExecuteVariables: true,',
'})],'
)

Expand Down Expand Up @@ -149,7 +149,7 @@ export const handler = async ({ force }) => {
// Use string replace to preserve comments and formatting
writeFile(
redwoodTomlPath,
configContent.concat(`\n[experimental.sentry]\n\tenabled = true\n`),
configContent.concat(`\n[experimental.sentry]\n enabled = true\n`),
{
overwriteExisting: true, // redwood.toml always exists
}
Expand Down
Loading