© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
13 replies
Marcel Overdijk

Downloading data before building pages (SSG/SSR)

I have the use case that I'm experimenting building a Cloudflare Pages project using Astro.

It will using a dynamic GraphQL endpoint which queries data from a D1 database.
However it will also generate static pages (SSG).

For these static pages I have a local SQLite file that will be queries to dynamically create the (static) pages.
Locally on my development machine this works perfectly.

However, I would like to switch to a mode that I automatically re-deploy my site via a push to Github.
Now that local SQLite is ~60MB (zipped ~6MB) and I don't want to upload that Github...

Is it possible to either download that file during the build process, or upload it somewhere before the build kicks off?
Note that the SQLite file (zip) is publicly available so that's not an issue.

I'm looking at the possibilities I have; and what possible limitations are.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SSR SSG function usage
Cloudflare DevelopersCDCloudflare Developers / pages-help
2y ago
building pages failed
Cloudflare DevelopersCDCloudflare Developers / pages-help
2y ago
Need help building application with SSR.
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago
Node not downloading in pages builds
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago