Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
applicazza committed Aug 6, 2021
2 parents 194641a + 3940dd1 commit 8a00997
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ Original [fastify-nextjs](https://github.com/fastify/fastify-nextjs) doesn't pas

## Usage

###Add dependencies
### Add dependencies

```shell
yarn add @applicazza/fastify-nextjs
yarn add fastify-static
```

###Disable compression in Next.js (next.config.js)
### Disable compression in Next.js (next.config.js)

```js
module.exports = {
compress: false,
};
```

###Default example
### Default example

```ts
import createFastify from 'fastify';
Expand All @@ -49,7 +49,7 @@ fastify.passNextJsRequests();
await fastify.listen(0);
```

###Extended example
### Extended example

```ts
import createFastify from 'fastify';
Expand Down Expand Up @@ -77,7 +77,7 @@ fastify.passNextJsPageRequests();
await fastify.listen(0);
```

###Plugin accepts following options:
### Plugin accepts following options:

```ts
interface FastifyNextJsOptions {
Expand All @@ -87,7 +87,7 @@ interface FastifyNextJsOptions {
}
```

###Plugin augments fastify instance with following properties and methods:
### Plugin augments fastify instance with following properties and methods:

```ts
interface FastifyNextJsDecoratorArguments {
Expand Down

0 comments on commit 8a00997

Please sign in to comment.