From 0b46bce08331f4dec38c93d2fad004d7d4c18499 Mon Sep 17 00:00:00 2001 From: chasers Date: Wed, 30 Jun 2021 15:31:14 -0700 Subject: [PATCH] Add Vercel deploy button --- README.md | 4 ++++ pages/api/hello.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b12f3e3..7501ef2 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/pages/api/hello.js b/pages/api/hello.js index 8a7eb87..fc41cfc 100644 --- a/pages/api/hello.js +++ b/pages/api/hello.js @@ -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.")