apollo-server-cloudflare is building at >1MB
See original GitHub issueUsing the latest version of apollo-server-cloudflare
(2.0.2
), a minimal app builds to greater than 1MB, which is the limit of Cloudflare Workers (so cannot be deployed).
A project build with 1.0.0-beta.0
builds to less than 350KB.
See 1.0.0-beta.0
example at https://github.com/jbaxleyiii/apollo-server-cloudflare. Then, install the latest version, and see the new size of dist/app.js
.
Update: Still an issue as of 2.2.2
(2018-11-13)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:18
Top Results From Across the Web
Integrate GraphQL Worker with KV storage?
Lightning-fast, globally distributed Apollo GraphQL server, ... Building a GraphQL server on the edge with Cloudflare Workers.
Read more >Choosing an Apollo Server package
Apollo Server is distributed as a collection of different packages for different environments and web frameworks. ... apollo-server-cloudflare (Cloudflare).
Read more >Cloudflare Workers - vite-plugin-ssr
Cloudflare uses the term "worker code" to denote server code that is run on ... use vite-plugin-cloudflare which enables us to simply use...
Read more >Cloudflare Workers | Noise | Page 6
I have to be honest: creating a server-side rendered React framework with little prior knowledge was very difficult. There's still a ton to...
Read more >Why do Webdevs keep trying to kill REST? - Swyx
Watching recent trends in client-server paradigms, from Apollo GraphQL ... JS bundles upfront: Firebase adds as much as 1mb to your bundle, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi all, dev advocate for the cloudflare workers team here 👋 we recently pushed some updates to how we bundle scripts at deploy time in workers – after some testing, it looks to me like deploying an apollo server on workers… works! (again)
would love someone to double-check my work who has been running into this issue in this thread – here’s an example project you can configure: https://github.com/signalnerve/workers-graphql
I do not need uploads, so i just aliased
busboy
to null inwebpack.config.js
, barely fits(968KiB) but works. Also cloudflare needs aaddEventListener
. here is a gist