Skip to content

Commit

Permalink
update cloudfront redirect url to work with astro deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
aasmal97 committed Jan 3, 2025
1 parent 3d1497b commit e7310bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ virtual
/virtual
__pycache__/
__pycache__*

.codegpt
21 changes: 9 additions & 12 deletions app/lib/hosting/clientCloudfrontRedirectBehaviorFunc.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
function handler(event: any) {
var request = event.request;
var uri = request.uri;
if (uri.endsWith("/")) {
request.uri = "/index.html";
} else if (!uri.includes(".")) {
request.uri = "/index.html";
}

return request;
}
// export default handler
function handler(event: any) {
var request = event.request;
var uri = request.uri;
if (!uri.includes(".")) {
request.uri += "/index.html";
}
return request;
}
// export default handler
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const ignoreRepoMap = {
".github-private": true,
"aasmal97": true,
};
export const ignoreOrganization = {
'chingu-voyages': true,
Expand Down

0 comments on commit e7310bd

Please sign in to comment.