Skip to content

Commit

Permalink
fix: generate '/guide' Open Graph images instead of '/modules'
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Oct 28, 2023
1 parent 3a6e082 commit e313a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/open-graph/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const pages = await import.meta.glob('/src/content/**/*.mdx', { eager: true });

// Convert the glob result to remove the `/src/content` prefix
Object.keys(pages).forEach(path => {
const newPath = path.replace(/^\/src\/content/, '');
const newPath = path.replace(/^\/src\/content/, '').replace('/modules', '/guide');
pages[newPath] = pages[path];
delete pages[path];
});
Expand Down

1 comment on commit e313a5f

@vercel
Copy link

@vercel vercel bot commented on e313a5f Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.