Problems with Workers, Cloudflare and Keystatic #1297
Unanswered
MrChrisFabian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Keystatic Communitie!
Problem 🔴
My workers in Cloudflare exceed the limit of 1MiB, how can i optimize that? Any Help is well received
Error: Failed to publish your Function. Got error: Your Worker exceeded the size limit of 1 MiB. Refer to the Workers documentation (https://developers.cloudflare.com/workers/observability/errors/#errors-on-worker-upload) for more details.
Context 🟢
Education platform
Im currently developing a platform for open and free education with keystatic and Astro, ideal
Collections created
We created a collection for each major in the university, each of them can create a semester and the semester has a array field to create his specify subjects, all that information is saved in a json file for each collection
keystatic config file
Uses of the collections
In each post to be write in keystatic you can select him for what major, semester and subject it belongs to. for create the fields.select of that i use a script that obtain the collection and create the fields, that's exported and at the end is used in the keystatic config.
Before the Collections...
We use to have hardcoded in Typescript Files all the majors, semesters and subjects, but we think that isn't realiable at long term, and isn't that user-friendly.
That solution didn't causes any problem with workers.
Beta Was this translation helpful? Give feedback.
All reactions