Fix Cloudflare Pages build (#1285)

* fix(temp): remove box shadows from tailwind config

* fix(temp): "polyfill" global during build process

* refactor: use `import.meta` instead of deprecated `process`

* oops: replace `process.server` as well
This commit is contained in:
Evan Song
2024-07-10 22:17:04 -07:00
committed by GitHub
parent 04ba76aac8
commit c20242cf1c
13 changed files with 25 additions and 30 deletions

View File

@@ -48,7 +48,7 @@ export const updateTheme = (value, updatePreference = false) => {
if (updatePreference) theme.value.preference = value;
}
if (process.client) {
if (import.meta.client) {
document.documentElement.className = `${theme.value.value}-mode`;
}