-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in cloudfront function source
- Loading branch information
1 parent
d266453
commit b959298
Showing
4 changed files
with
8 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @casimir/redirect | ||
|
||
> Casimir cloudfront functions redirect service |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
function handler(event: AWSCloudFrontFunction.Event) { | ||
const request = event.request | ||
|
||
const uri = request.uri | ||
if (!uri.includes('.')) { | ||
request.uri += '.html' | ||
if (!event.request.uri.includes('.')) { | ||
event.request.uri += '.html' | ||
} | ||
|
||
return request | ||
return event.request | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# @casimir/users | ||
|
||
Casimir users service | ||
> Casimir users service and database | ||
## Development | ||
|
||
|