Skip to content

Commit

Permalink
fix: hook webpack error
Browse files Browse the repository at this point in the history
  • Loading branch information
la3rence committed Jan 23, 2025
1 parent 8cf75d9 commit 7b4bcbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// next.config.js

module.exports = {
// experimental: {
// appDir: true,
// },
experimental: {
// appDir: true,
},
i18n: {
locales: ["zh", "en"], // post.en.md, post.ja.md
defaultLocale: "zh", // post.zh.md or post.md
Expand Down
8 changes: 4 additions & 4 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
@apply px-4;
}

code[data-theme*=" "],
code[data-theme*=" "] span {
code[data-theme],
code[data-theme] span {
color: var(--shiki-light);
background-color: var(--shiki-light-bg);
}

@media (prefers-color-scheme: dark) {
code[data-theme*=" "],
code[data-theme*=" "] span {
code[data-theme],
code[data-theme] span {
color: var(--shiki-dark);
background-color: var(--shiki-dark-bg);
}
Expand Down

0 comments on commit 7b4bcbc

Please sign in to comment.