Skip to content

barelyhuman/prev-nitro

Repository files navigation

prev-nitro

This is a tiny boilerplate that adds support for preact-islands into unjs/nitro.

So you get the amazing DX from nitro and h3 to be able to deploy anywhere and you get preact islands for when you wish to add interactivity.

Usage

  • Clone this template using Github or using degit
npx degit barelyhuman/prev-nitro <my-awesome-project>

Replace <my-awesome-project> with the name of your project.

  • Install Dependencies
npm i  # delete the `yarn.lock` file in using this command
# or
yarn i
  • Run in Dev Mode
npm run dev
# or
yarn dev
  • Build for production usage
npm run build
# or
yarn build

Docs

You can go through the nitro documentation to understand how to work with nitro.

License

reaper Open License for both OSS and Commercial.

The source is provided as is and licenses of other dependecies used by the source are still viable. Please read them carefully.