Comments (4)
I'm interested in the same subject. it would be nice to hear more about how the community implemented it.
from open-next.
Just stumbled across this. If you want to figure out how to implement it, the SST NextjsSite construct would be where to take a look. Or you could just use their NextjsSite construct with SST and call it a day...
from open-next.
@juliocorzo, I am trying to achieve the same thing using aws-cdk v2. I am new to it, so I am struggling a little bit. As a former user of the serverless-nextjs component, it would be great to make this work.
from open-next.
Follow up: I implemented a fully-working demo with Terraform, but, it's important to understand that Terraform really doesn't like to share infrastructure. I mention this because each new deployment of open-next requires CloudFormation to run to change the Lambdas and S3 assets.
I had to ignore a bunch of stuff on first run, then change a variable in Terraform once the pipeline has run once and the functions exist. I don't think this is sustainable, as new Next.js features will lead to more problems upgrading.
My current point of view is that open-next really shines when using it with SST. Some organizations might not like moving away from Terraform, but I believe that the nature of serverless Next.js requires custom infrastructure be created. It's not as simple as just setting it up on ECS.
This is not the fault of SST or Terraform, but I would encourage anyone that is thinking of using open-next to consider if they actually can at their organization. It's an amazing project, and I'm pushing for adoption, but it's important to know these caveats.
from open-next.
Related Issues (20)
- [BUG] Error on Warmer function HOT 3
- Lambda@Edge tried to add, delete, or change a read-only header HOT 2
- Undefined environment variables after upgrade to V3 HOT 4
- getting started ion link redirecting to wrong page HOT 1
- (Next)Auth doesn't properly refresh the page when deployed using Open Next HOT 7
- Redirect to different domain result in invalid url HOT 1
- ImageFunction fails with "TypeError: Cannot read properties of undefined (reading 'getStore')" HOT 3
- Next config redirects is not working correctly on Next 12 HOT 1
- URL with semicolon in query params throws 400 error HOT 1
- Open next with SST on AWS - Missing Cloudfront Behaviors HOT 7
- Next config redirects is not working correctly with i18n default platform HOT 4
- NX Monorepo support HOT 1
- Post Deployment MIME Type Mismatch With Safari HOT 3
- Re-enable nextjs compression or allow enabling it optionally HOT 12
- Problem using deployed server-function from open-next when using basePath HOT 10
- publishing to v3 tag for use with sst ion HOT 2
- [Feature Request] - package agnostic runner HOT 1
- Missing polyfill for middleware: URLPattern
- Middleware not running for cached responses which should be protected HOT 1
- v3.0.8 might break nextjs 14 (14.1.4) middleware HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-next.