fix(ssr): polyfill IntersectionObserver for Node.js SSR runtime

This commit is contained in:
F4ilji
2026-07-06 17:53:46 +05:00
parent 520533ef1f
commit eda69f4e37
+9
View File
@@ -1,3 +1,12 @@
if (typeof globalThis.IntersectionObserver === 'undefined') {
globalThis.IntersectionObserver = class {
constructor() {}
observe() {}
unobserve() {}
disconnect() {}
};
}
import '../css/app.css';
import { createInertiaApp } from '@inertiajs/vue3'
import createServer from '@inertiajs/vue3/server'