Skip to content

Commit

Permalink
use satisfies
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Jan 6, 2025
1 parent d6e8022 commit fdac057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/server/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const rehypeCheckFrontMatter: Plugin<[], any> = () => (ast, file) => {
}
};

export const defaultNextraOptions: NextraConfig = {
export const defaultNextraOptions = {
defaultShowCopyCode: true,
whiteListTagsStyling: ['iframe', 'video', 'source'],
search: {
Expand All @@ -83,7 +83,7 @@ export const defaultNextraOptions: NextraConfig = {
// Should be rehype since frontMatter is attached in remark plugins
rehypePlugins: process.env.NODE_ENV === 'production' ? [rehypeCheckFrontMatter] : [],
},
};
} satisfies NextraConfig;

// this won't be emitted if it's inline in parens
export interface WithGuildDocsOptions extends NextConfig {
Expand Down

0 comments on commit fdac057

Please sign in to comment.