Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@genezio/open-next
Advanced tools
OpenNext takes the Next.js build output and converts it into packages that can be deployed across a variety of environments. Natively OpenNext has support for AWS Lambda, and classic Node.js Server.
OpenNext aims to support all Next.js 14 features. Some features are work in progress. If you are running into any problems make sure to check the docs first before you open a new issue or visit our Discord to let us know!
Gymshark UK, Udacity, TUDN, NHS England
In the example
folder, you can find a Next.js benchmark app. It contains a variety of pages that each test a single Next.js feature. The app is deployed to both Vercel and AWS using SST.
AWS link: https://d1gwt3w78t4dm3.cloudfront.net
Vercel link: https://open-next.vercel.app
For personalisation you need to create a file open-next.config.ts
at the same place as your next.config.js
, and export a default object that satisfies the OpenNextConfig
interface. It is possible to not have an open-next.config.ts file, the default configuration will then be applied automatically.
OpenNext can be executed in debug mode by setting the environment variable OPEN_NEXT_DEBUG=true
before your build.
This will output A LOT of additional logs to the console. This also disable minifying in esbuild, and add source maps to the output. This can result in code that might be up to 2-3X larger than the production build. Do not enable this in production.
You can read more about the configuration in the docs
To run OpenNext
locally:
open-next
:
cd packages/open-next
pnpm build
open-next
in watch mode:
pnpm dev
open-next
and build your Next.js app to test the changes.
cd path/to/my/nextjs/app
path/to/open-next/packages/open-next/dist/index.js build
OpenNext provide you with a warmer function that can be used to reduce cold start.
On Lambda, there are multiple scenarios where a lambda will trigger a cold start even if you have some warmed instance. For example if you have more requests than warm instances you'll get a cold start. Also NextJs lazy load the routes, so even if you hit a warm instance, this specific route might not have been loaded yet.
We are grateful for the projects that inspired OpenNext and the amazing tools and libraries developed by the community:
Special shoutout to @khuezy and @conico974 for their outstanding contributions to the project.
Maintained by SST. Join our community: Discord | YouTube | Twitter
FAQs
Open source Next.js serverless adapter
The npm package @genezio/open-next receives a total of 82 weekly downloads. As such, @genezio/open-next popularity was classified as not popular.
We found that @genezio/open-next 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.