This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Cloudfront function to pass most things as routes (#10234)
Project-defined routes were not being handled properly by the Cloudfront function; the function was not properly handling subroutes of the registered route, e.g. /newroute/subroute would throw a 403 because the CF function didn't know how to handle anything other than /newroute. Rather than make the function conditionally handle subroutes, it was determined that it would be easier to instead have /projects and /recordings paths be passed through as-is, and have everything else that wasn't a static client file be passed as if it were a route, i.e. get directed to client/index.html and let the router there determine what to do with it (or nothing, if it's not a registered route). Co-authored-by: Hanzla Mateen <[email protected]>
- Loading branch information
1 parent
966c7c7
commit b6b8977
Showing
2 changed files
with
15 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters