From e87fb831c060c515b52673d99f95bf81b011173d Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 11 Sep 2023 17:32:17 +0300 Subject: [PATCH 1/4] fix(nextjs): create necessary directories in... app router --- src/nextjs/nextjs-wizard.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/nextjs/nextjs-wizard.ts b/src/nextjs/nextjs-wizard.ts index bb2e7c32..44680f2e 100644 --- a/src/nextjs/nextjs-wizard.ts +++ b/src/nextjs/nextjs-wizard.ts @@ -323,6 +323,13 @@ export async function runNextjsWizard(options: WizardOptions): Promise { useClient: true, }); + fs.mkdirSync( + path.join(process.cwd(), ...appLocation, 'sentry-example-page'), + { + recursive: true, + }, + ); + await fs.promises.writeFile( path.join( process.cwd(), @@ -340,9 +347,12 @@ export async function runNextjsWizard(options: WizardOptions): Promise { )}.`, ); - fs.mkdirSync(path.join(process.cwd(), ...appLocation, 'api'), { - recursive: true, - }); + fs.mkdirSync( + path.join(process.cwd(), ...appLocation, 'api', 'sentry-example-api'), + { + recursive: true, + }, + ); await fs.promises.writeFile( path.join( From b8d6eee2f4a0694671bd23ec7834003ef196bac2 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 13 Sep 2023 10:23:18 +0200 Subject: [PATCH 2/4] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bc54787..d8efd618 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - enh(android): Show link to issues page after setup is complete (#448) +- fix(nextjs): Create necessary directories in app router ## 3.12.0 From 7af5a06a27e564eb1d30dde28a428fb71ab14f85 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 13 Sep 2023 10:24:42 +0200 Subject: [PATCH 3/4] credits --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8efd618..e4b3f022 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - enh(android): Show link to issues page after setup is complete (#448) - fix(nextjs): Create necessary directories in app router +Work in this release contributed by @andreysam. Thank you for your contributions! + ## 3.12.0 - feat(sourcemaps): Automatically insert Sentry Webpack plugin (#432) From 6dab05521a39fe353374451d7ae14df4f8041337 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 13 Sep 2023 10:25:43 +0200 Subject: [PATCH 4/4] issue id --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4b3f022..d570a4a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Unreleased - enh(android): Show link to issues page after setup is complete (#448) -- fix(nextjs): Create necessary directories in app router +- fix(nextjs): Create necessary directories in app router (#439) Work in this release contributed by @andreysam. Thank you for your contributions!