@enhance/fastify-plugin

1.0.0 • Public • Published

@enhance/fastify-plugin

Render custom elements with file based routing.

Setup

Install with npm install @enhance/fastify-plugin, and app.register per the example below.

import Fastify from 'fastify'
import Enhance from '@enhance/fastify-plugin'

const app = Fastify()

app.register(Enhance)

app.listen({ port: 3000 }, console.log)

File based routing

Look at ./app and ./preview.mjs in this repo for an example. Learn more at enhance.dev.

Readme

Keywords

none

Package Sidebar

Install

npm i @enhance/fastify-plugin

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

2.01 kB

Total Files

9

Last publish

Collaborators

  • colepeters
  • ryanbethel
  • brianleroux
  • tbeseda
  • macdonst
  • ryanblock
  • dam