1.15.3 • Published 8 months ago

@fleek-platform/next-on-fleek v1.15.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@fleek-platform/next-on-fleek

@fleek-platform/next-on-fleek is a CLI tool that you can use to build and develop Next.js applications so that they can run on Fleek Functions.

This tool is a best-effort library implemented by the Fleek team, on the shoulders of the Cloudflare team and the community. As such, most, but not all, Next.js features are supported. See the Supported Versions and Features document for more details.

Quick Start

This section describes how to bundle and deploy a (new or existing) Next.js application to Fleek Functions, using @fleek-platform/next-on-fleek.

1. Select your Next.js app

To start using @fleek-platform/next-on-fleek, you must have a Next.js project that you wish to deploy. If you already have one, change to its directory. Otherwise, you can use the create-next-app command to start a new one.

npx create-next-app@latest my-next-app
cd my-next-app

We have confirmed support for the current version of Next.js at the time of writing, 14.2.14. Although we'll endeavor to keep support for newer versions, we cannot guarantee that we'll always be up-to-date with the latest version. If you experience any problems with @fleek-platform/next-on-fleek, you may wish to try pinning to 14.2.14 while we work on supporting any recent breaking changes.

2. Configure the application to use the Edge Runtime

For your application to run on Fleek Functions, it needs to opt in to use the Edge Runtime for routes containing server-side code (e.g. API Routes or pages that use getServerSideProps). To do this, export a runtime route segment config option from each file, specifying that it should use the Edge Runtime.

export const runtime = 'edge';

For more examples of this and for Next.js versions prior to v14.2.14, take a look at our examples document. Additionally, ensure that your application is not using any unsupported APIs or features.

3. Deploy your application to Fleek Functions

To deploy your application to Fleek Functions, you need to install the @fleek-platform/next-on-fleek package.

npm install -D @fleek-platform/next-on-fleek

TODO

Recommended development workflow

When developing a next-on-fleek application, this is the development workflow that Fleek recommends:

Deploy your application and iterate

After you have previewed your application locally, you can deploy it to Fleek (via Fleek Next CLI) and iterate over the process to make new changes.

Examples

To see some examples on how to use Next.js features with @fleek-platform/next-on-fleek, see the Examples document.

Troubleshooting

If you find yourself hitting some issues with @fleek-platform/next-on-fleek please check out our official troubleshooting documentation.

More Information

For more information on the project please check out the README in the next-on-pages github repository.

1.15.0

8 months ago

1.15.3

8 months ago

1.15.2

8 months ago

1.15.1

8 months ago

1.14.9

8 months ago

0.0.0-1a2b2b8

8 months ago

0.0.0-47bbddf

8 months ago

0.0.0-684eec0

8 months ago

1.14.8

8 months ago

0.0.0-ec5764b

8 months ago

1.14.7

8 months ago

0.0.0-7c10f37

8 months ago

1.14.6

8 months ago

0.0.0-c8faf01

8 months ago

1.14.5

8 months ago

0.0.0-3c8ad47

8 months ago

0.0.0-b1071d9

9 months ago

1.14.4

9 months ago

0.0.0-a8db6e1

9 months ago

0.0.0-df48a55

9 months ago

1.14.3

9 months ago

1.14.2

9 months ago

0.0.0-c68eee1

9 months ago

0.0.0-f73b5f5

9 months ago

1.14.1

9 months ago

1.14.0

9 months ago

0.0.0-23a22eb

9 months ago

1.13.3

9 months ago