Replies: 1 comment 7 replies
-
SST is a bit more complex and has more abstraction w/ multiple Site constructs. I had a PR on SST to support this but it was left by the wayside. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have 3 Next.js sites and for now I'm deploying them with SST independently (each one with it's own Distribution) and then I wrote another stack that create an API Gateway to proxy the calls to the 3 distribution each app under it's own /subfolder;
This is far from good because I'm basically losing all the CloudFront benefits by proxying it with the API Gateway.
I wonder if I could pass the to the NextJs an existing distribution and tell it to put all the mappings for each side under a
/prefix
and then I could use only this distribution as entry point to my applications using/subfolders
for each.I've been reading the code of both SST and cdk-nextjs (I need to confess the code here is way more readable and easy to understand than SST) but both do not have such thing of passing an existing distribution, just props to create a distribution.
I'm planning in working on a PR for that, any suggestions or ideas?
Beta Was this translation helpful? Give feedback.
All reactions