TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Deploy Next.js to AWS

54 点作者 jayair超过 3 年前
Hi HN, we are Frank and Jay and we are working on a better way to deploy Next.js apps to AWS: https:&#x2F;&#x2F;serverless-stack.com&#x2F;examples&#x2F;how-to-create-a-nextjs-app-with-serverless.html<p>We are the founders of SST, an open source framework that makes it easy to build serverless apps on AWS: https:&#x2F;&#x2F;github.com&#x2F;serverless-stack&#x2F;serverless-stack<p>We found that many people in the community were looking for a better way to deploy Next.js apps to their own infrastructure and they were unhappy with the options. These were not easy to customize (Amplify Next.js) or would pass your code and credentials via a 3rd party service (Serverless Next.js component). So we decided to fix it.<p>There are a couple of things to note, specifically the AWS integration.<p>- Completely open source and free<p>- Deploys directly to your AWS account<p>- Import environment variables from your AWS services<p>- Easily manage permissions to your AWS resources<p>- Works with any CI service, supports PR&#x2F;preview deployments<p>- Uses AWS CDK to define your infrastructure as code<p>We wrote about how to get started and compared the various deployment options: https:&#x2F;&#x2F;serverless-stack.com&#x2F;examples&#x2F;how-to-create-a-nextjs-app-with-serverless.html. You can also check out the docs: https:&#x2F;&#x2F;docs.serverless-stack.com&#x2F;constructs&#x2F;NextjsSite<p>We&#x27;d appreciate if you took it for a spin and gave us some feedback!

1 comment

leerob超过 3 年前
Awesome! I&#x27;m glad there are more options for folks deploying Next.js apps. For what it&#x27;s worth, the majority of Next.js apps we see deployed are self-hosted using a Node.js server[1] or Docker[2]. Would love to hear more your opinion why SST instead of one of these :)<p>To make sure I&#x27;m understanding SST, it builds off serverless-nextjs[3], correct? And then ads the features listed above on top, most notably CDK support?<p>[1]: <a href="https:&#x2F;&#x2F;nextjs.org&#x2F;docs&#x2F;deployment#nodejs-server" rel="nofollow">https:&#x2F;&#x2F;nextjs.org&#x2F;docs&#x2F;deployment#nodejs-server</a><p>[2]: <a href="https:&#x2F;&#x2F;nextjs.org&#x2F;docs&#x2F;deployment#docker-image" rel="nofollow">https:&#x2F;&#x2F;nextjs.org&#x2F;docs&#x2F;deployment#docker-image</a><p>[3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;serverless-nextjs&#x2F;serverless-next.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;serverless-nextjs&#x2F;serverless-next.js</a>
评论 #28619701 未加载