## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Bug fix ## What is the current behavior? The apps/learn and apps/ui-library applications fail to start in development mode (pnpm dev) and during production builds. This is caused by a conflict between Next.js 16, which enables Turbopack by default, and the Contentlayer plugin, which injects a custom Webpack configuration. Error: ⨯ ERROR: This build is using Turbopack, with a webpack config and no turbopack config. ## What is the new behavior? This PR adds the required turbopack configuration block to the next.config.mjs files for both apps/learn and apps/ui-library. It explicitly enables Turbopack while providing the raw-loader rules for *.md files. This ensures that Contentlayer can correctly process Markdown content under Turbopack. Reference: This fix follows the established pattern used in the Design System [#39890](https://github.com/supabase/supabase/pull/39890/changes#diff-07283a8ef455ee1c6769cb991039300209d540dd727e3434b070d03075ced551) and Studio to handle the Contentlayer/Turbopack conflict. <img width="1429" height="856" alt="image" src="https://github.com/user-attachments/assets/253ad0da-6420-441b-874c-3394b21b9ae5" /> --- ## Additional context Verified that `pnpm dev` starts successfully for both apps after the change. Verified that `pnpm build` completes successfully using the Turbopack engine. <img width="1429" height="856" alt="image" src="https://github.com/user-attachments/assets/11efbd5c-57c5-425a-baca-f0198d0e7d91" /> <img width="1429" height="856" alt="image" src="https://github.com/user-attachments/assets/17ec4f25-c19e-4f6b-bcc6-d898b7b20815" /> System: macOS | Node: v24.13.1 | Next.js: 16.2.3 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Chores** * Updated build configuration to optimize Markdown file processing in the application build system across multiple packages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Plan: Course 1: Supabase Foundations Learn the basics of Supabase: database, auth, and RLS. 5 chapters.
Course 2: Project: Smart Office 15 Build a realtime room-booking dashboard using Supabase. 15 chapters. Course 3: Supabase Internals: Performance & Scaling. Learn how to profile queries, tune indexes, and scale Postgres with Supabase. 20 chapters. Course 4: Supabase Internals: Debugging & Operations. Understand how to diagnose slow queries, use read replicas, and manage production workloads. 20 chapters.
———
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Supabase types
To regenerate the Supabase database types, run
supabase gen types --local > registry/default/fixtures/database.types.ts