We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ce13c commit b123f9fCopy full SHA for b123f9f
src/server/getAllMetadata.ts
@@ -38,8 +38,8 @@ export async function getAllMetadata() {
38
*/
39
export const getMetadataFromPath = cache(async (urlPath: string) => {
40
// Convert URL path to possible file paths
41
- const directPath = urlPath.substring(1) + '.mdx' // Remove leading slash
42
- const indexPath = urlPath.substring(1) + '/index.mdx'
+ const directPath = `${urlPath.substring(1)}.mdx` // Remove leading slash
+ const indexPath = `${urlPath.substring(1)}/index.mdx`
43
44
// Try direct path first, then index path
45
let filePath: string | null = null
0 commit comments