Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/versecafe/serwist-ppr-issue-demo

demo of serwist pwa ppr loading bug
https://github.com/versecafe/serwist-ppr-issue-demo

Last synced: 16 days ago
JSON representation

demo of serwist pwa ppr loading bug

Awesome Lists containing this project

README

        

# Serwist example - next-basic

This example demonstrates how to use Serwist with Next.js.

## Usage

[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/serwist/serwist/)

```bash
cd examples/next-basic
pnpm build
pnpm start
```

or

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example:

```bash
npx create-next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
```

```bash
yarn create next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
```

```bash
pnpm create next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
```

```bash
bun create next-app --example https://github.com/serwist/serwist/tree/main/examples/next-basic my-app
```

## Recommended `.gitignore`

```gitignore
**/public/serwist**
**/public/sw**
**/public/worker**
**/public/fallback**
**/public/precache**
```