Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Rewrite default urls to ./index.html #61

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jaredstehler
Copy link

Since we need to use a CloudFrontOriginAccessIdentity to not expose our S3 content publicly, we can't (I believe) use the S3 website endpoint as a CloudFront origin, meaning we can't use the S3 website feature which allows for default folder URLs to resolve to index.html under the hood. This PR rewrites all URI's which end in '/' to append 'index.html'.

It might be nice to make this configurable; I'm willing to go down the road of updating the build.js to add that as a parameter if folks think this is useful enough.

@ashtonian
Copy link

I think its worth making configurable :)

@thatsjet
Copy link

thatsjet commented Nov 19, 2020

Original suggestion came from me and YES totally would love to have it configurable. Also I'd be totally happy to contribute the PR to modify build.js if you want.

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

Successfully merging this pull request may close these issues.

None yet

4 participants