
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@fleek-platform/next-on-fleek
Advanced tools
`@fleek-platform/next-on-fleek` is a CLI tool that you can use to build and develop [Next.js](https://nextjs.org/) applications so that they can run on [Fleek Functions](https://fleek.xyz/docs/platform/fleek-functions/).
@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.
This section describes how to bundle and deploy a (new or existing) Next.js application to Fleek Functions, using @fleek-platform/next-on-fleek
.
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.
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.
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
When developing a next-on-fleek
application, this is the development workflow that Fleek recommends:
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.
To see some examples on how to use Next.js features with @fleek-platform/next-on-fleek
, see the Examples document.
If you find yourself hitting some issues with @fleek-platform/next-on-fleek
please check out our official troubleshooting documentation.
For more information on the project please check out the README in the next-on-pages github repository.
FAQs
`@fleek-platform/next-on-fleek` is a CLI tool that you can use to build and develop [Next.js](https://nextjs.org/) applications so that they can run on [Fleek Functions](https://fleek.xyz/docs/platform/fleek-functions/).
The npm package @fleek-platform/next-on-fleek receives a total of 177 weekly downloads. As such, @fleek-platform/next-on-fleek popularity was classified as not popular.
We found that @fleek-platform/next-on-fleek demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.