Skip to content

Commit

Permalink
exp setup sentry: Fix file extension (#9829)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jan 15, 2024
1 parent 597e673 commit 9a43eac
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 9a43eac

Please sign in to comment.