Skip to content

Commit

Permalink
Bump version and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
applicazza committed Jun 22, 2021
1 parent 265c991 commit a4e053d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
via [Fastify](https://github.com/fastify/fastify).

[![npm](https://img.shields.io/npm/v/@applicazza/fastify-nextjs)](https://www.npmjs.com/package/@applicazza/fastify-nextjs) [![codecov](https://codecov.io/gh/applicazza/fastify-nextjs/branch/main/graph/badge.svg?token=CCVDPRT9MT)](https://codecov.io/gh/applicazza/fastify-nextjs)

**This project is yet to reach stable state. You may help by contributing and testing it.**

## Why

Original [fastify-nextjs](https://github.com/fastify/fastify-nextjs) doesn't pass response through Fastify's pipeline thus hooks that you may need won't work. This package is using JavaScript's [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) to intercept calls to NodeJs [http.ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse) and pass it to Fastify.

## Usage

Add dependencies
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"name": "Artyom Sokolov",
"url": "https://artyomsokolov.com"
},
"description": "Fastify and Next.js integration",
"devDependencies": {
"@types/eslint": "^7",
"@types/jest": "^26.0.23",
Expand All @@ -29,6 +30,13 @@
"files": [
"dist"
],
"homepage": "https://github.com/applicazza/fastify-nextjs",
"keywords": [
"fastify",
"next",
"react",
"ssr"
],
"license": "MIT",
"main": "dist/index.js",
"name": "@applicazza/fastify-nextjs",
Expand All @@ -44,5 +52,5 @@
"test": "jest --coverage"
},
"types": "dist/index.d.ts",
"version": "0.0.2"
"version": "0.0.3"
}

0 comments on commit a4e053d

Please sign in to comment.