zeit/next.jsPre-release v9.0.4-canary.4### Patches
- Only add flying-shuttle code when enabled: #8330
- Update custom app example in README: #8320
- Add config/test app for new PR stats set-up: #8317
- Show warning if next export detects an API route: #8257
- Remove extra variable: #8329
- Followup optimizations for new experimentalPrerender: #8287
- Prevent false positive experimental warning: #8284
- Add warning for missing <Head>: #8276
- Escape output names for modern bundles to prevent replacing: #8232
- Remove accidental support for invalid JavaScript: #8077
- Fix: Warn when user specifies prefetch option as
true
: #8233
- Fix TypeScript setup with empty file: #8332
- Update to use dynamic port for stats-app: #8336
- Detect
@types/ package for compiled packages: #8340
- 🐛 Support multiple Next.js versions in one file: #8339
- Add test for AMP errors during auto prerendering: #8335
- Minify ncc'd packages for download speed: #8341
- Use 'initial' setting for SplitChunksPlugin: #8293
- Add warning for disabled minification during build: #8337
- Also provide AppTree in NextPageContext: #8223
- Fixes nav start argument in user timing check: #8348
- Add missing dependency "compression" to next-server: #8344
- Add note explaining empty query during prerendering: #8351
- Remove experimental async-to-promises code: #8353
- Fix AppTree type not allowing extra props: #8352
- Add a note for multiple dynamic route segments: #8359
- Fix chunking tests failing from timeout being too low: #8360
- Define
typeof window
for application code only: #8355
- Add tests for typeof window replacing: #8361
- Updated links from #useRouter to #userouter: #8362
### Credits
Huge thanks to
@timneutkens,
@borekb, @ijjk,
@lfades,
@adam187,
@devknoll,
@nataliemarleny,
@atcastle,
@huv1k,
@housseindjirdeh,
@elliottsj,
@yuyokk, and
@williamli for helping!