serverless-next.js
aws-sam-typescript-layers-example
Our great sponsors
serverless-next.js | aws-sam-typescript-layers-example | |
---|---|---|
35 | 4 | |
4,391 | 231 | |
0.7% | - | |
0.0 | 2.4 | |
3 days ago | 4 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
serverless-next.js
-
My SaaS architecture (tech stack) on AWS as a solo developer with Node.js as a backend
I'm currently waiting SST v2 to be released where they will use https://open-next.js.org instead of https://github.com/serverless-nextjs/serverless-next.js
-
Deploying Next.js 13 with Amplify CDK
To deploy the app, I had the requirement to use AWS as a cloud-provider, with a limited budget, so neither Vercel (a safe choice, as it is the company which develops Next.js), nor a containerized solution like the managed AWS ECS Fargate service could satisfy my needs. Then, I started with a serverless hosting thanks to the serverless-next project, which provides a serverless plugin or a CDK construct to deploy a Next.js stack. However, this project is no more well-maintained and new Next.js features (like middlewares, etc.) are not supported.
-
Have you noticed that AWS Amplify and NextJS don't seem to get as much attention as they deserve?
If you have the time and resources, I'd suggest to take a look at SST.dev and or OpenNext (created by the SST people). With that ISR should work (although they still seem to work on upgrading to v12). Or take a look at https://github.com/sladg/nextjs-lambda to run NextJS on a lambda exclusively.
-
Are there disadvantages to running NextJS on Lambda with Serverless framework?
serverlessnextjs does not support NextJS 13. https://github.com/serverless-nextjs/serverless-next.js/issues/2497
-
I hate Amplify
I hate Amplify. I've been using it for around 2 weeks, because serverless-next.js no longer works with Next v13.
-
π Next Auth vs SST Auth
Let's mention that it's possible to deploy a Next.js application using SST π . This setup relies on the serverless-next.js project and it's hidden behind a construct named NextJsSite. It can be a very efficient solution when you want to ship your application on AWS environment (I use it for a production workload in my current company).
- Next.js com serverless-stack
- Is Turbopack 10x Faster than Vite?
- Astro 1.0
-
What are some good ways to deploy a react app on AWS?
ATM Next JS is SSR (Server Side Rendering) so only S3 and CloudFront is not enough! As mentioned here already Lambda@Edge can do the server parts and is used like in Amplify. An Alternative would the serverless framework which offers a next js deployment https://github.com/serverless-nextjs/serverless-next.js .
aws-sam-typescript-layers-example
-
Serverless SAM application which calculates your work remote savings
Inspired by this blogpost, I've hacked together a small AWS Serverless application powered by SAM, which calculates your work remote savings. I hope find this fun!
-
SAM, Typescript and Sync Step functions
Recently, I've been working on this project where we are using SAM with Typescript. Long story short, AWS SAM does not support TypeScript out of the box. So I had to create a makefile in order to build each lambda function. More details on this implementation here.
-
Nrwl Nx: How to build javascript only mode?
I will say, I've since moved past this a little bit, although not entirely. I still have the Lambda code, but I can build and run locally (it took me a while to figure out how to run an AWS web server locally). And, I found a tutorial that uses Typescript and Makefiles with AWS Lambdas. Not entirely sure I want to buy into their model, but it's something and continues to allow a clean CI/CD environment. That's my biggest concern and why I asked the original question.
- Serverless TypeScript com AWS SAM
What are some alternatives?
terraform-aws-next-js - Terraform module for building and deploying Next.js apps to AWS. Supports SSR (Lambda), Static (S3) and API (Lambda) pages.
yarn.build - Build π and Bundle π¦ your local workspaces. Like Bazel, Buck, Pants and Please but for Yarn Berry. Build any language, mix javascript, typescript, golang and more in one polyglot repo. Ship your bundles to AWS Lambda, Docker, or any nodejs runtime.
nextjs-monorepo-example - Collection of monorepo tips & tricks
blueauth - π Serverless passwordless authentication. No databases needed. Use in just 1 line in serverless, middleware, express, next.js, and more.
nextjs-ssr-cdk-aws - π¦ βββ ββββ ββββ βNext.js webapp using Server Side Rendering (SSR) and Incremental Static Regeneration (ISR) deployed with Serverless Nextjs CDK construct on AWS using CloudFront and Lambda@Edge [Moved to: https://github.com/ibrahimcesar/nextjs-ssr-isr-cdk-aws]
serverless - This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.
lift - Expanding Serverless Framework beyond functions using the AWS CDK
middy-idempotent - π΅ π¬ βββββ ββββ ββββ βIdempotence Middy middleware for your AWS Lambdas
sveltekit-adapter-lambda - An adapter to build a SvelteKit app into a lambda ready for deployment with lambda proxy via the Serverless Framework.
webiny-js - Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
sst - Build modern full-stack applications on AWS
aws-sam-webpack-plugin - A Webpack plugin to replace the build step for SAM CLI