Skip to content

Commit

Permalink
fix: configure Cloudfront to support SPA using history API
Browse files Browse the repository at this point in the history
  • Loading branch information
sanason committed Dec 7, 2023
1 parent cf22801 commit b7b7a88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
10 changes: 0 additions & 10 deletions packages/client/public/errors/403.html

This file was deleted.

10 changes: 0 additions & 10 deletions packages/client/public/errors/404.html

This file was deleted.

8 changes: 4 additions & 4 deletions terraform/modules/gost_website/cdn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ module "cdn" {

custom_error_response = [{
error_code = 404
response_code = 404
response_page_path = "/errors/404.html"
response_code = 200
response_page_path = "/index.html"
}, {
error_code = 403
response_code = 403
response_page_path = "/errors/403.html"
response_code = 200
response_page_path = "/index.html"
}]

origin = {
Expand Down

0 comments on commit b7b7a88

Please sign in to comment.