Skip to content

fix(nextjs): Ignore tunnelRoute when doing static exports#8471

Merged
lforst merged 2 commits intodevelopfrom
lforst-nextjs-static-exports-tunnel-route
Jul 7, 2023
Merged

fix(nextjs): Ignore tunnelRoute when doing static exports#8471
lforst merged 2 commits intodevelopfrom
lforst-nextjs-static-exports-tunnel-route

Conversation

@lforst
Copy link
Copy Markdown
Contributor

@lforst lforst commented Jul 7, 2023

Fixes #8285

Next.js doesn't allow static exports + rewrites. This PR will stop injecting rewrites on static exports.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 7, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB (+0.66% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB (+0.83% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.29 KB (+0.87% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB (+0.96% 🔺)
@sentry/browser - Webpack (gzipped + minified) 21.9 KB (+0.79% 🔺)
@sentry/browser - Webpack (minified) 71.51 KB (+0.81% 🔺)
@sentry/react - Webpack (gzipped + minified) 21.92 KB (+0.8% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 50.57 KB (+0.35% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.11 KB (+0.51% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.14 KB (+0.59% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.42 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 43.1 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.5 KB (+0.23% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.82 KB (+0.25% 🔺)

@lforst lforst requested review from Lms24 and mydea July 7, 2023 08:30
@lforst lforst merged commit 86ffdf4 into develop Jul 7, 2023
@lforst lforst deleted the lforst-nextjs-static-exports-tunnel-route branch July 7, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Next 13 + App Router + static export results in a build error (Specified "rewrites" cannot be used with "output: export")

2 participants