This repo is part of fleekxyz/templates a collection of Collection of Boileplates & examples configured to easily deploy to Fleek.xyz with the pre-configured scrips.
Here is a summary of the available scripts and a description.
yarn
This will start a server on http://localhost:3000 where you can check the changes made to the content.
yarn dev
This will use next build & next export
creating a directory called out
which contains the site that will be uploaded
yarn build
You can configure this site using Fleek's CLI, to get started run:
fleek sites init
It will prompt you for the following inputs:
- Site name: You can go ahead and create a new site
- Specify dist directory: Use
out
which contains the site exported by next - Build command: You can specify the build command so fleek cli can build & deploy the site for you, you can use
npm run build
After running this you'll be able to deploy the site using Fleek CLI
After configuring the fleek.json
file using Fleek's CLI you can go ahead and deploy your site by running:
fleek sites deploy
Then it will output a message that contains you IPFS CID
Export successful. Files written to fleek-demos-blog/out
> Success! Deployed! IPFS CID: Qmb2psuVMkGfSdH3egfLEHc2di5VKtDVdTqtB8wqFNbK2h
Contributions are always welcome!
Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!