Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrybig committed May 28, 2024
1 parent 36d1b88 commit 7e00b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions md-compiler/parser/makeGeneratedPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export const dynamic = "force-static"
export function makeGeneratedFeed(format: string, slug: string | null, {articleWrapperPath, outputDir}: Config) {
return `/* eslint-disable */
import { generateFeed } from ${JSON.stringify(importRelative(join(outputDir, slug ?? '.', 'feed'), articleWrapperPath))};
import { ${slug ? 'getChildrenBySlug, getMetadataBySlug' : 'getIndirectChildren'} } from ${JSON.stringify(importRelative(join(slug ?? '.', 'feed'), 'content'))};
import { ${slug ? 'getChildrenBySlug, getMetadataBySlug' : 'getContentChildren'} } from ${JSON.stringify(importRelative(join(slug ?? '.', 'feed'), 'content'))};
${slug ?
`const slug = ${JSON.stringify(slug)}, metadata = getMetadataBySlug(slug), children = getChildrenBySlug(slug);` :
'const metadata = null, children = getIndirectChildren();'
'const metadata = null, children = getContentChildren();'
}
export function GET() {
Expand Down

0 comments on commit 7e00b64

Please sign in to comment.