basePath configuration #100
Replies: 1 comment 2 replies
|
Thanks for asking! This seems like a regression. I'll look into this as soon as I can. Seems like simple fix. Thanks for sharing your workaround. PRs are welcome! But I'll get to this eventually. |
2 replies
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.
I'm trying to host my site using path based routing (https://my.domain.com/mypath) and I've configured basePath in both the NextjsGlobalContainers construct and next.config.ts file. I noticed that some of the static assets were not loading so I did a couple of things.
Added a new cloudfront behavior /mypath/_next/static* - manually added but would like to add it via CDK via overrides
copied all the s3 objects from the bucket root to a mypath bucket prefix. - bash script to do the s3 copy
This got things working but having to do these extra steps has me questioning if I'm doing something wrong. I've tried a lot of different combinations of setting basePath only in cdk-nextjs and vice-versa. Any insights or thoughts would be appreciated.
All reactions