From c9b431ee26d430384e53e05e4f193fdf9aadf720 Mon Sep 17 00:00:00 2001 From: Priscila Oliveira Date: Mon, 30 Sep 2024 11:56:15 -0300 Subject: [PATCH 1/2] ref(remix-wizard): Fix creation sentry example when no routes folder available --- src/remix/sdk-example.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/remix/sdk-example.ts b/src/remix/sdk-example.ts index cbdfec643..2c3a5a433 100644 --- a/src/remix/sdk-example.ts +++ b/src/remix/sdk-example.ts @@ -13,6 +13,12 @@ export async function createExamplePage(options: { url: string; isTS: boolean; }) { + const routesPath = 'app/routes'; + + if (!fs.existsSync(routesPath)) { + fs.mkdirSync(routesPath); + } + const exampleRoutePath = `app/routes/sentry-example-page.${ options.isTS ? 'ts' : 'js' }x`; From 381f068c3cfc20c6902a8f2b8501a8559050bcff Mon Sep 17 00:00:00 2001 From: Priscila Oliveira Date: Mon, 30 Sep 2024 13:21:35 -0300 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67227fb4a..7a2c6fa1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Fix creation sentry example when no routes folder ([#680](https://github.com/getsentry/sentry-wizard/pull/680)) + ## 3.32.0 - feat: Add `--saas` CLI arg to skip self-hosted or SaaS selection step (#678)