Skip to content

Commit

Permalink
Merge branch 'dev' into feature/GIVCAMP-313_vertical-poster-update
Browse files Browse the repository at this point in the history
* dev:
  1.3.4
  Update sitemap.ts (#257)
  • Loading branch information
yvonnetangsu committed Apr 3, 2024
2 parents ae391ae + 21ea390 commit 00d5648
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {

// Exclude any stories with noindex set to true on Storyblok
const indexStories = response.filter((story) => !story.content?.noindex);

const currentURL = process.env.URL || process.env.DEPLOY_PRIME_URL || 'https://momentum.stanford.edu';

const ret = indexStories.map((story) => {
const url = story.path ? `${currentURL}/${story.path}` : `${currentURL}/${story.full_slug}`;
return {
url: story.path ?? `/${story.full_slug}`,
url: url.replace(/\/+$/, ''),
lastModified: new Date(story.published_at),
changeFrequency: 'daily', // Added in 13.4.5
priority: 0.5, // Added in 13.4.5
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ood-giving-campaign",
"version": "1.3.3",
"version": "1.3.4",
"description": "Momentum",
"author": "Stanford University",
"keywords": [
Expand Down

0 comments on commit 00d5648

Please sign in to comment.