Skip to content

Local development without a remote build step? #103

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

You must be logged in to vote

Hey!

There's actually a great feature for this scenario, via the storage property in the Keystatic config.

Instead of...

storage: {
  kind: 'github',
  repo: {
    name: 'repo-name',
    owner: 'repo-owner',
  }
}

... you can do:

storage: {
  kind: 'local'
}

I haven't tested it out yet, but this should skip the entire GitHub part of things. I have tested it, and it works great! No GitHub App, no branches, nothing. Keystatic just creates the content files where you tell it to via the directory prop in your collections.

That means you bail on the whole "allow contributors to create PRs without running the project locally", but this may be exactly what you need for your specific scenario!

Ho…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jasikpark
Comment options

Answer selected by simonswiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants