From 1fe21f85bd24c31c9815136bbfc30baed66c8281 Mon Sep 17 00:00:00 2001 From: Huu Le <39040748+leehuwuj@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:25:26 +0700 Subject: [PATCH] chore: Fix highlight.js issue with Next.js static build (#413) --- .changeset/stupid-cougars-raise.md | 5 +++++ templates/types/streaming/nextjs/next.config.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/stupid-cougars-raise.md diff --git a/.changeset/stupid-cougars-raise.md b/.changeset/stupid-cougars-raise.md new file mode 100644 index 00000000..158195c7 --- /dev/null +++ b/.changeset/stupid-cougars-raise.md @@ -0,0 +1,5 @@ +--- +"create-llama": patch +--- + +Fix the highlight.js issue with the Next.js static build diff --git a/templates/types/streaming/nextjs/next.config.json b/templates/types/streaming/nextjs/next.config.json index 74df9bb1..da162240 100644 --- a/templates/types/streaming/nextjs/next.config.json +++ b/templates/types/streaming/nextjs/next.config.json @@ -11,5 +11,6 @@ "app/**/*" ] } - } + }, + "transpilePackages": ["highlight.js"] } -- GitLab