Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Nov 15, 2023
1 parent 681d179 commit 92ab409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion website/components/contented/ShikiHighlighter.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { getHighlighter, Highlighter, renderToHtml } from 'shiki';
import CssVariables from 'shiki/themes/css-variables.json';

let highlighter: Highlighter;

/**
* Server-side renders a code block with CSS variables
*/
export async function renderCssVariableHtml(props: { code: string; language: string }): Promise<string> {
if (highlighter === undefined) {
highlighter = await getHighlighter({
theme: 'css-variables',
theme: CssVariables as any,
});
}

Expand Down
1 change: 0 additions & 1 deletion website/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const nextConfig = {
env: {
BASE_URL: getBaseUrl(),
},
output: 'standalone',
trailingSlash: false,
reactStrictMode: true,
swcMinify: true,
Expand Down

0 comments on commit 92ab409

Please sign in to comment.