fastify-nuxtjs icon indicating copy to clipboard operation
fastify-nuxtjs copied to clipboard

Added example with typescript fastify

Open gustawdaniel opened this issue 3 years ago • 1 comments

Inspired by comment

https://github.com/fastify/fastify-nextjs/issues/207#issuecomment-824939719

gustawdaniel avatar Jul 29 '21 08:07 gustawdaniel

Hey @gustawdaniel, thanks for opening a PR, similar to the comment you mentioned on the issue, could you please add a working example?

import fastify, { RequestGenericInterface } from "fastify";
import fastifyNuxt from 'fastify-nuxtjs';

const app = fastify({ logger: true })

app.register(fastifyNuxt)
  .after(() => {
    app.next('*')
  });

Gomah avatar Jul 31 '21 04:07 Gomah