✨ newIntroducing Fleek AI agent hosting, with Eliza framework support
Fullstack Nextra on Nextjs template banner

Fullstack Nextra on Nextjs

Next.js Framework logo

Nextra Docs on Fleek

This is a Next.js application generated with Create Nextra. Nextra is a minimalist, fully customizable documentation site built for easy deployment on Fleek. Perfect for showcasing project documentation, this template uses Next.js to deliver a smooth experience.

Prerequisites

Getting Started

  1. Fork the repository
  2. Clone the repository by running the following command:
git clone https://github.com/<your-id>/nextra-on-fleek.git
  1. Enter the correct directory, install dependencies and run locally:
cd nextra-on-fleek
pnpm i
pnpm run dev
  1. Ensure that you install the Fleek CLI and the Fleek Next Adapter:
// local installation
npm i @fleek-platform/cli
npm i @fleek-platform/next

// global installation
npm i -g @fleek-platform/cli
npm i -g @fleek-platform/next

💡: you can check the Fleek CLI version by running fleek -v. Any version >= 2.10.1 should be good. As for the Fleek Next adapter, you can check the Fleek Next Adapter version by running fleek-next -v. Any version >= 2.10.0 should be good.

Building and Deploying on Fleek

  1. Build the project using the Fleek Next Adapter:
npx fleek-next build
# or if installed globally
fleek-next build
  1. Now, Create the Fleek Function using the Fleek CLI:
//syntax
fleek functions create --name '<name of your function>'

//example
fleek functions create --name fleek-nextra
  1. Finally, deploy using the Fleek CLI:

//syntax
fleek functions deploy --bundle=false --path .fleek/dist/index.js --assets .fleek/static --name '<name of your function>'

//example
fleek functions deploy --bundle=false --path .fleek/dist/index.js --assets .fleek/static --name fleek-nextra

Live Demo →

License

This project is licensed under the MIT License.

Screenshot

Template preview

Details

November, 04, 2024

Creation date

Next.js

Framework

Web3 Starter Kit

Category

Report template for abuse