Skip to content

Commit

Permalink
wrapped not undefined anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Feb 2, 2024
1 parent 70e29a1 commit ef76b6f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions website/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,11 @@ const config: DocsThemeConfig = {
}
const isWrapped = pathname.startsWith('/wrapped/');
if (isWrapped) {
const name = query?.name ?? 'My React app';
ogUrl = `https://telemetry.million.dev/api/v1/og/wrapped/${
query.id
}.mp4?name=${encodeURIComponent(query?.name as any)}`;
title = (query?.name ?? "My React app") + ' Wrapped | Million.js';
}.mp4?name=${encodeURIComponent(name as any)}`;
title = name + ' Wrapped | Million.js';
}

return (
Expand Down Expand Up @@ -294,7 +295,9 @@ const config: DocsThemeConfig = {
}

if (pathname.startsWith('/wrapped/')) {
return { title: (query?.name ?? "My React app") + ' Wrapped | Million.js' };
return {
title: (query?.name ?? 'My React app') + ' Wrapped | Million.js',
};
}

return { titleTemplate: `%s | Million.js` };
Expand Down

0 comments on commit ef76b6f

Please sign in to comment.