Skip to content

Conversation

@dijonmusters
Copy link
Contributor

@dijonmusters dijonmusters commented Nov 14, 2025

What?

Upgrade with-supabase example to be compatible with Next.js 16

Why?

  1. Users get console warnings about middleware vs proxy
  2. Enabling Cache Components config results in build errors for async behaviour outside Suspense boundary
  3. Turbopack flag is default and therefore, no longer necessary on npm run dev

How?

  1. Renamed all instances of middleware to proxy
  2. Wraped async behaviour in Suspense boundaries
  3. Removed --turbopack flag from npm run dev

@ijjk ijjk added the examples Issue was opened via the examples template. label Nov 14, 2025

const nextConfig: NextConfig = {
/* config options here */
cacheComponents: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to leave this enabled by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we made the call that this template already contains many examples of opinions - tailwind, shadcn, radix, lucide, App Router, server-side auth etc - so this being toggled is what we would recommend for new projects. Easy enough to remove this one line if they want to opt out 👍

@ijjk ijjk merged commit fc4f062 into vercel:canary Nov 18, 2025
105 of 107 checks passed
Moroshima pushed a commit to Moroshima/next.js that referenced this pull request Nov 20, 2025
### What?

Upgrade with-supabase example to be compatible with Next.js 16

### Why?

1. Users get console warnings about middleware vs proxy
2. Enabling Cache Components config results in build errors for async
behaviour outside Suspense boundary
3. Turbopack flag is default and therefore, no longer necessary on `npm
run dev`

### How?

1. Renamed all instances of `middleware` to `proxy`
2. Wraped async behaviour in Suspense boundaries
3. Removed --turbopack flag from `npm run dev`

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples Issue was opened via the examples template.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants