-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSR Site construct support for base path option #2964
Comments
Hey Thomas, can you post this on #help and we'll take a look at supporting it. |
@jayair Any updates on this? Searching discord just turns up workarounds and callouts that |
I think this is supported for Astro and maybe Next.js. Which one are you looking for? |
Next.js, yeah, we use it in our app's Next config, but when deployed with SST, that basePath isn't used as a prefix in cloudfront (specifically the app looks for static bundles at I've got a workaround for now, but certainly would be nice if the next construct used it when defining the CF routing rules! |
Let me check on the Next.js one with the team. |
I derped/lied. My workaround doesn't actually solve the issue. Regarding what I said before:
Without base path support, my next app will request all static bundles and such from the root path So this remains a big hindrance. Curiously. I was just poking around again and I found this deprecated NextjsSite construct (as far as I can tell, it's deprecated because the non-deprecated construct uses SsrSite as a base, whereas the deprecated one doesn't?), and found that this deprecated version actually does support |
@jayair since I figured out how |
Just wanted to bump this, since using |
All the SSR frameworks support rendering on a base path like
example.com/docs
I can't get this working with sst :(
The text was updated successfully, but these errors were encountered: