Skip to content

🚀 Feature: Add support for Cloudflare Pages #72

Closed
@shyakadavis

Description

@shyakadavis

🔖 Feature description

Hello;

Thanks again for Appwrite; really neat project, with awesome docs too.

So, after introducing SSR capabilities, I was finally getting started on my SvelteKit project, and followed along with how this sdk is the one to use for SSR.

Currently, deploying my project to Cloudflare Pages breaks everything since CF isn't a true node runtime, and doesn't support some modules. I know from the name itself this is a node sdk, but I was hoping to hear of a solution and/or alternatives in order to have SSR in my app.

There are currently Error: Bundling with esbuild failed with 29 errors in different files that crash everything. Here is a list of inaccessible modules and file source:

  • os (File: node-appwrite/lib/client.js)
  • url (File: node-appwrite/lib/client.js)
  • fs (File: node-appwrite/lib/inputFile.js)
  • fs (File: node-appwrite/lib/services/account.js)
  • fs (File: node-appwrite/lib/services/avatars.js)
  • fs (File: node-appwrite/lib/services/databases.js)
  • fs (File: node-appwrite/lib/services/functions.js)
  • fs (File: node-appwrite/lib/services/graphql.js)
  • fs (File: node-appwrite/lib/services/health.js)
  • fs (File: node-appwrite/lib/services/locale.js)
  • fs (File: node-appwrite/lib/services/messaging.js)
  • fs (File: node-appwrite/lib/services/storage.js)
  • fs (File: node-appwrite/lib/services/teams.js)
  • fs (File: node-appwrite/lib/services/users.js)
  • net (File: undici/lib/client.js)
  • http (File: undici/lib/client.js)
  • net (File: undici/lib/core/connect.js)
  • tls (File: undici/lib/core/connect.js)
  • http (File: undici/lib/core/util.js)
  • net (File: undici/lib/core/util.js)
  • querystring (File: undici/lib/core/util.js)
  • worker_threads (File: undici/lib/fetch/constants.js)
  • zlib (File: undici/lib/fetch/index.js)
  • http (File: undici/lib/fetch/index.js)
  • perf_hooks (File: undici/lib/fetch/util.js)
  • http (File: undici/lib/mock/mock-utils.js)
  • console (File: undici/lib/mock/pending-interceptors-formatter.js)
  • url (File: undici/lib/proxy-agent.js)
  • worker_threads (File: undici/lib/websocket/events.js)

I guess my ask is, do you mind providing support for Cloudflare pages with this SDK, and if it's not possible, do you mind pointing me in the right direction in terms of alternatives for someone trying to use SSR capabilities with Appwrite but deploying on Cloudflare.

Thank you for the consideration. 🙂

🎤 Pitch

In my use-case, I really love deploying to Cloudflare because it's very convenient, easy, and free. 🙂

Guessing other people feel the same.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwork in progressWork on this issue has been started

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions