Skip to content

Commit

Permalink
Add Vercel deploy button
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers committed Jun 30, 2021
1 parent c6322ba commit 0b46bce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Deploy with Logflare on Vercel

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fhello-world&integration-ids=oac_yEwf1AmqJMbRs2rkmnePdNK3)

## Getting Started

First, run the development server:
Expand Down
4 changes: 2 additions & 2 deletions pages/api/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default function handler(req, res) {
// Logging to pino-logflare
logger.info(data, "Handled response. Logged with pino-logflare.")

// Logging with pino. Both will end up in Vercel's log drains with slight different payloads.
// Both will end up Logflare if a log drain is setup.
// Logging with pino.
// Both will end up in Vercel's log drains with slight different payloads.
const onlyPino = require('pino')()

onlyPino.info(data, "Handled response. Logged with pino.")
Expand Down

0 comments on commit 0b46bce

Please sign in to comment.