Skip to content

Commit

Permalink
add features to prerender
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Aug 14, 2024
1 parent 0c8558c commit fff412a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export default defineNuxtModule({

const agencyPartners = await directus.request(readItems('agency_partners', { fields: ['slug'], limit: -1 }));

const features = await directus.request(readItems('features', { fields: ['slug'], limit: -1 }));

const shows = await directusTv.request(readItems('shows', { fields: ['slug'], limit: -1 }));

const episodes = await directusTv.request(
Expand All @@ -68,6 +70,7 @@ export default defineNuxtModule({
permalinks.push(...team.map((member) => `/team/${member.slug}`));
permalinks.push(...projects.map((project) => `/built-with-directus/${project.slug}`));
permalinks.push(...agencyPartners.map((partner) => `/agency-directory/${partner.slug}`));
permalinks.push(...features.map((feature) => `/features/${feature.slug}`));
permalinks.push(...shows.map((show) => `/tv/${show.slug}`));
permalinks.push(...episodes.map((ep) => `/tv/${ep.season.show.slug}/${ep.slug}`));

Expand Down

0 comments on commit fff412a

Please sign in to comment.