Cloudflare Cache + static files on S3 #14795
Unanswered
krzysztof-pyrzyk-ah
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.
-
Hey,
we're about to deploy NextJS to production in a few weeks.
Our site sits behind Cloudflare and we have some extensive caching rules there.
We're thinking about pushing files from
./next/static/
to S3 and serving it from S3 so that, after we re-deploy our app to production, we won't lose old static files.This way, if someone visits a cached page that points to old static files, these files will still be accessible.
Is there anything I'm missing here or that should work as expected?
Beta Was this translation helpful? Give feedback.
All reactions