Skip to content

Keystatic and static site generation #826

Answered by simonswiss
curioustechizen asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

It's because the API routes in the Keystatic Admin UI are doing some reads/writes on the file system (or GitHub repo), which need to happen on the server.

The frontend itself can totally be all pre-rendered HTML. Perhaps you can deploy the Keystatic Admin UI somewhere else that supports Node.js, and deploy your Astro site on github pages?

https://thinkmill.com.au is an example of an Astro site (running as pre-rendered HTML, SSG) deployed on Vercel, and only the admin UI routes are server-rendered. It's all deployed together to enable folks to update the site without accessing the codebase, and it works great 👍

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@curioustechizen
Comment options

@airtonix
Comment options

@airtonix
Comment options

@tordans
Comment options

Answer selected by curioustechizen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants