Skip to content

Commit

Permalink
Deploy: Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Nov 21, 2024
1 parent 9f59c4b commit f1cf522
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
11 changes: 3 additions & 8 deletions .env.example.githubpages
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# Those variables stay empty
# because we don't use Keystatic on Github Pages.
KEYSTATIC_GITHUB_CLIENT_ID= # Empty on Github Pages
KEYSTATIC_GITHUB_CLIENT_SECRET= # Empty on Github Pages
KEYSTATIC_SECRET= # Empty on Github Pages
PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=osm-verkehrswende-keystatic-cms
# For the static build, we only need the following variables.
# They need to be part of `.github/workflows/deploy.yaml`
# They are enforced by `astro.config.mjs` `env.schema``

# Those variables belong into .github/workflows/deploy.yml
# They are envored by `astro.config.mjs` `env.schema``
# KEYSTATIC_STORAGE_KIND: "local"
# ASTRO_ENV: "production"
# ASTRO_OUTPUT_MODE: "static"
Expand Down
8 changes: 4 additions & 4 deletions .env.example.local
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Keystatic
# Docs: https://keystatic.com/docs/github-mode
KEYSTATIC_GITHUB_CLIENT_ID= # empty
KEYSTATIC_GITHUB_CLIENT_SECRET= # empty
KEYSTATIC_SECRET= # empty
PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=osm-verkehrswende-keystatic-cms
KEYSTATIC_GITHUB_CLIENT_ID= # Follow https://keystatic.com/docs/github-mode#setting-up-git-hub-mode
KEYSTATIC_GITHUB_CLIENT_SECRET= # Dito
KEYSTATIC_SECRET= # Dito
PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=osm-verkehrswende-keystatic-cms # https://github.com/organizations/osmberlin/settings/apps/osm-verkehrswende-keystatic-cms
KEYSTATIC_STORAGE_KIND=local

ASTRO_ENV=development
Expand Down
2 changes: 2 additions & 0 deletions .env.example.netlify
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ ASTRO_OUTPUT_MODE=server
ASTRO_USE_NETLIFY_ADAPTER=true

# Those variables need to be added to the Netlify site settings manually.
# To create them, setup Keystatic for Github on local, following https://keystatic.com/docs/github-mode#setting-up-git-hub-mode
# To edit the Github application, see https://github.com/Thinkmill/keystatic/pull/1358/files

0 comments on commit f1cf522

Please sign in to comment.