Skip to content

Commit

Permalink
Sitemap (#627)
Browse files Browse the repository at this point in the history
* add super basic sitemap

* Move sitemap to public and update infra to ignore it for the redirect.

---------

Co-authored-by: Melissa Autumn <[email protected]>
  • Loading branch information
malini and MelissaAutumn authored Sep 3, 2024
1 parent 6ebbcb7 commit b42dc1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/public/sitemap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://appointment.day/
2 changes: 1 addition & 1 deletion tofu/modules/services/frontend-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ resource "aws_cloudfront_function" "rewrite" {
async function handler(event) {
const request = event.request;
const apiPath = "/api/v1";
const ignorePaths = ['/fxa', '/assets', '/appointment_logo.svg'];
const ignorePaths = ['/fxa', '/assets', '/appointment_logo.svg', '/sitemap.txt'];
const pathCheckFn = (path) => request.uri.startsWith(path);
// If our api path is the first thing that's found in the uri then remove it from the uri.
Expand Down

0 comments on commit b42dc1a

Please sign in to comment.