feat: complete public wiki and embedded previews

This commit is contained in:
吉鑫升 committed 2026-08-24 20:42:39 +08:00
1 parent c4d61288b4
commit 644cabd23d
18 files changed
+926 -48

No files matched your search

+14 -5
View File
@@ -21,11 +21,20 @@ export default defineConfig({
},
},
},
resolve: {
alias: [
{
find: "@/env",
replacement: path.resolve(rootDir, "src/env.ts"),
resolve: {
alias: [
{
// react-syntax-highlighter@16.1.1 exposes an async `sqlMore`
// loader, but its own highlight.js@10.x dependency has no
// `sql_more` module. Reuse the bundled SQL grammar so Rollup can
// resolve every generated language loader without leaving a broken
// browser-time external import.
find: /^highlight\.js\/lib\/languages\/sql_more$/,
replacement: "highlight.js/lib/languages/sql",
},
{
find: "@/env",
replacement: path.resolve(rootDir, "src/env.ts"),
},
{
find: "next/navigation",