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

https://github.com/ide/next-error-headers


https://github.com/ide/next-error-headers

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# next-error-headers

Demo showing that Next.js serves custom headers even for error pages (e.g. 404s).

```
yarn
yarn next build
yarn next start

# Expect custom headers to be set
curl -s -D - -o /dev/null http://localhost:3000/static/nyan.png

# Custom headers are still set even though a 404 page is served
curl -s -D - -o /dev/null http://localhost:3000/static/missing
```