This example demonstrates how to use Serwist with Next.js.
cd examples/next-basic
pnpm build
pnpm start
or
Execute create-next-app
with npm, Yarn, pnpm, or bun to bootstrap the example:
npx create-next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
yarn create next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
pnpm create next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
bun create next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
**/public/serwist**
**/public/sw**
**/public/worker**
**/public/fallback**
**/public/precache**