Skip to content

Commit

Permalink
fix(nextjs): Set created test route handler to always be dynamic (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Nov 2, 2023
1 parent 7bf120a commit 2431343
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- fix(nextjs): Set created test route handler to always be dynamic (#486)

## 3.16.1

- fix(Cordova): Skip dynamic libraries on Cordova (#481)
Expand Down
2 changes: 2 additions & 0 deletions src/nextjs/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ export default function handler(_req, res) {
export function getSentryExampleAppDirApiRoute() {
return `import { NextResponse } from "next/server";
export const dynamic = "force-dynamic";
// A faulty API route to test Sentry's error monitoring
export function GET() {
throw new Error("Sentry Example API Route Error");
Expand Down

0 comments on commit 2431343

Please sign in to comment.