Skip to content

Commit

Permalink
Fix sitemap api
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Jan 24, 2024
1 parent 5fe6ca6 commit d102b0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.js
sh ./../deploy/generate-sitemap.sh https://dev-stack.canopas.com https://dev-stack-api.canopas.com
yarn install --frozen-lockfile && yarn generate
aws s3 rm s3://dev-stack.canopas.com/sitemap.xml
aws s3 sync ./.output/public s3://dev-stack.canopas.com --exclude "*.js"
aws s3 sync ./.output/public s3://dev-stack.canopas.com --include "*.js" --content-type "application/javascript"
aws cloudfront create-invalidation --distribution-id ${{ secrets.DEV_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"
6 changes: 3 additions & 3 deletions sitemap/sitemap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ func expectedURLData() []URL {
{Loc: baseUrl + `/thank-you`, Priority: `0.9`},
{Loc: baseUrl + `/jobs/thank-you`, Priority: `0.9`},
{Loc: baseUrl + `/unsubscribe`, Priority: `0.9`},
{Loc: baseUrl + "/portfolio/luxeradio", Priority: `0.9`},
{Loc: baseUrl + "/portfolio/togness", Priority: `0.9`},
{Loc: baseUrl + "/portfolio/justly", Priority: `0.9`},
{Loc: baseUrl + "/jobs", Priority: `1`},
{Loc: baseUrl + "/jobs/ios-developer-a9b45f34-a1a5-419f-b536-b7c290925d6d", Priority: `0.9`},
{Loc: baseUrl + "/jobs/apply/ios-developer-a9b45f34-a1a5-419f-b536-b7c290925d6d", Priority: `0.9`},
{Loc: baseUrl + "/portfolio/luxeradio", Priority: `0.9`},
{Loc: baseUrl + "/portfolio/togness", Priority: `0.9`},
{Loc: baseUrl + "/portfolio/justly", Priority: `0.9`},
}

for i := range sitemapUrls {
Expand Down
1 change: 0 additions & 1 deletion templates/path.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
test
services
portfolio
contributions
Expand Down

0 comments on commit d102b0d

Please sign in to comment.