Skip to content

Commit

Permalink
fix: turn off experimental features
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas committed Oct 31, 2023
1 parent b8bc122 commit 35f6180
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions components/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { getHighlighter } from "shiki";

export interface TextNode {
index: number;
text: string;
Expand Down Expand Up @@ -83,10 +81,3 @@ export function buildClassString(className: string): string {
return classString;
}, "");
}

export async function highlight(code: string, lang: string) {
const highlighter = await getHighlighter({
theme: "dracula",
});
return highlighter.codeToHtml(code, { lang });
}
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/** @type {import('next').NextConfig} */
module.exports = {
pageExtensions: ["ts", "tsx"],
experimental: {
serverComponentsExternalPackages: ["shiki", "vscode-oniguruma"],
},
images: {
remotePatterns: [
{
Expand Down

0 comments on commit 35f6180

Please sign in to comment.