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:
1 parent
04ba76aac8
commit
c20242cf1c
13 files changed
+25
-30
No files matched your search
@@ -5,7 +5,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
const cosmetics = useCosmetics();
|
||||
|
||||
nuxtApp.hook("app:mounted", () => {
|
||||
if (process.client && themeStore.value.preference === "system") {
|
||||
if (import.meta.client && themeStore.value.preference === "system") {
|
||||
const colorSchemeQueryList = window.matchMedia("(prefers-color-scheme: light)");
|
||||
|
||||
const setColorScheme = (e) => {
|
||||
|
||||
Reference in new issue
Block a user