Deploying NextJS with SSR to both Fargate and S3+CloudFront - using Github actions and Docker #79330
Unanswered
royibernthal
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm currently deploying NextJS with SSR to Fargate using a Github workflow and Docker. It works as expected, and the next step is to add a CDN.
Should I sync /public and /.next/static with an S3 bucket in the github workflow? If so, should I build the nextjs app once in the github workflow and then deploy different parts of the same build to both fargate and S3? If not, how do you go about it?
Are there any best practices or github actions that already do this out of the box?
I prefer to not use IAC like SST for this.
Here's my github workflow:
And here's my docker file:
I'm using NextJS v15.3.2.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions