Skip to content
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

deploy overwrites existing s3 routing rules with 'generateRoutingRules' set to false #260

Open
cezarcarvalhaes opened this issue Jul 2, 2021 · 1 comment

Comments

@cezarcarvalhaes
Copy link

We had an issue where when using gatsby-plugin-s3, it created an infinite re-direct loop on one of client-only routes. So we set generateRoutingRules to false. We then route our own routing rules manually and added to s3 for other client-only routes, only to find out that they get erased on every deploy from here on out. This might be due to the inner workings how aws-cli syncs.

It would be a nice feature to be able to write our own custom routing rules, and reference the json file inside the gatsby-plugin-s3 config options.

@andrew-knott
Copy link

Is there any resolution on this? How can we prevent manually added redirection rules from being deleted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants