khuezy
khuezy
I'd like to deploy `Service` to `us-east-1` and `eu-west-1`, using the recommended way: `sst deploy --region=us-east-1 && sst deploy --region=eu-west-1`, how would I reference the CF distribution domain URL for...
I have the same problem but the inverse. `next dev` works fine but once I deploy to AWS, then it reloads on `` navigation. Edit: user error. The cloudfront caching...
This unfortunately does not work :(
Can you try upgrade to v0.16.3 to see if that fixes the issue?
The line you linked has the cachePolicy for the lambda (eg api), which we don't want to cache. https://github.com/jetbridge/cdk-nextjs/blob/main/src/Nextjs.ts#L493, maybe something is wrong here? Would changing it to... help? ```...
Thanks for doing the bench testing. I'm sure there's plenty to optimize. I'm been mostly testing local stuff.
@revmischa, what do you think?
@pancho111203 The PR above adds caching to static pages. I'll be thoroughly testing this out before I mark it ready.
@pancho111203 are you using the new `appDir` or the old `pages` directory? If using the `pages`, are you exporting `getStaticProps`? You should be getting cached pages if you are exporting...
Yes, give that a shot. It should add `cache-control` w/ some max-age. You can return `{ props: {...}, revalidate: 60}` to add ISR. I'm not 100% sure this standalone works...