nextjs-lambda icon indicating copy to clipboard operation
nextjs-lambda copied to clipboard

EOL announcement

Open sladg opened this issue 10 months ago • 2 comments

After testing of open-next and SST I will be deprecating this package in foreseeable future in favour of SST and Open-Next.

Reasons are as following:

  • open-next took basic idea I had with this package and build complete support for developing Next,
  • connection with SST gives developers amazing experience when running and trying things locally - something I'm not planning to include or try to duplicate,
  • SST supports newer syntaxes and generally better keeps up with Next's changes thank to bigger community,
  • open-next builds on CDK and allows deployments to non-Edge lambdas, which go hand-in-hand with ideology of mine and this project,
  • Extra features such as ISR are supported.

Currently only one concern in mind:

  • Complexity of open-next and possibility to lot of things to brake (mapping of experimental flags, need to pass Next's env flags to build, Sharp bundling and generally using JS for image optimization - Python implementation we use now). However, with vivid community this is something, we can overcome.

One future issue I came by with current package as well as open-next

  • bundling of node_modules for Lambda's environment. Binary-specific dependencies get's bundled locally on host OS and might not be compatible with Lambda's runtime. This is industry-wide problem solvable by Docker and pipelines, however, not compatible with SST's dev experience.

Cheers! Jan

sladg avatar Aug 11 '23 08:08 sladg