Warning
This example uses a package is currently experimental and actively developed and supported in Next.js’ canary branch. To use this, you must be using a published canary build of Next.js.
This example demonstrates using Rspack in place of webpack in Next.js using next-rspack.
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-rspack with-rspack-appyarn create next-app --example with-rspack with-rspack-apppnpm create next-app --example with-rspack with-rspack-appDeploy it to the cloud with Vercel (Documentation).