You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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