馃悰 Bug Report: Node dependencies prevent SSR (like Remix) on Cloudflare Pages #85
Closed
2 tasks done
Labels
bug
Something isn't working
馃憻 Reproduction steps
Using https://github.com/Meldiron/appwrite-ssr-remix from @Meldiron, replace
@remix-run/node
with@remix-run/cloudflare
.The workaround (for Node) is to use
installGlobals
as seen in https://github.com/Meldiron/appwrite-ssr-remix/blob/main/server.ts, however this is not available for Cloudflare as Workers use the V8 runtime.馃憤 Expected behavior
The client should not use isomorphic libraries, and instead determine which libraries to use based on the platform. <-- guessing here
馃憥 Actual Behavior
Using
import { Client } from 'appwrite'
in a server file will causeUncaught ReferenceError: window is not defined
due to the use ofnode_modules/isomorphic-form-data/lib/browser.js
which does not work on edge (Workers). Pages is built on Workers, so it prevents deployment.馃幉 Appwrite version
Version 0.10.x
馃捇 Operating system
Linux
馃П Your Environment
No response
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: