You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -130,7 +130,7 @@ useHead({
|
||||
const user = await useUser();
|
||||
const auth = await useAuth();
|
||||
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
await initUserFollows();
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ async function readAll() {
|
||||
|
||||
function changePage(newPage) {
|
||||
page.value = newPage;
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user