@fleek-platform/next v2.1.4
β‘οΈFleek Next Adapter
The Fleek Next.js adapter allows you to deploy your server-side Next.js application on Fleek.
π§ Work in Progress π§
This repository is currently under development and is a Work in Progress. Features and functionalities may change frequently.
Installation
- npm
npm install @fleek-platform/next
- pnpm
pnpm install @fleek-platform/next
Usage
To build and prepare your Next.js application for deployment on Fleek, follow these steps:
- Configure Edge Runtime Add the following code to any routes that run server-side code to ensure they run on the edge:
export const runtime = 'edge';
- Build
Use the Fleek Next.js adapter to build and deploy your application via the command line:
npx fleek-next build
# or if installed globally
fleek-next build
If you are running the command outside of your project's root dir, you can set the path to it with the project path flag -p
/--projectPath
:
fleek-next build -p path/to/my/repo
The build
command supports several options to customize the build and deployment process:
-p, --project-path <path>
: The path to your Next.js project's root directory. Defaults to the path where the command is run.-s, --skipBuild
: Skip building the Next.js app before deployment, useful if you want to build the application yourself due to any possible extra steps. Defaults tofalse
.-i, --skipInstallation
: Skip installing the dependencies. Defaults tofalse
.-c, --clean
: Clean previous build artifacts before building.-v, --verbose
: Enable verbose logging.
- Deploy your function:
Use the Fleek CLI to deploy your function:
fleek functions deploy --noBundle --name '<name of your function>' --path .fleek/dist/index.js
Release Process
This project follows SemVer for versioning. Here's how to release a new version:
- Update Version Number: Bump the version number in package.json using npm version (patch/minor/major). This will update the version number in package.json and create a new Git tag.
pnpm version patch
- Push Changes and Tags
git push origin main --follow-tags
- GitHub Actions Automation: A GitHub Actions workflow automatically publishes the package to npm when a new tag is pushed.
Contributing
Thanks for considering contributing to our project!
How to Contribute
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make your changes.
- Commit your changes using conventional commits.
- Push to your fork and submit a pull request.
Commit Guidelines
We use Conventional Commits for our commit messages:
test
: π Adding missing testsfeat
: πΈ A new featurefix
: π A bug fixchore
: π€ Build process or auxiliary tool changesdocs
: βοΈ Documentation only changesrefactor
: π‘ A code change that neither fixes a bug or adds a featurestyle
: π Markup, white-space, formatting, missing semi-colons...
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago