Skip to content

Is it possible to use astro db with github pages deploy? #7537

Answered by Fryuni
isimmons asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can follow this guide on how to deploy connecting to Studio.

More specifically, to authenticate to Astro Studio you need an app token. You then add that app token in an ASTRO_STUDIO_APP_TOKEN environment variable when running astro build --remote.

For GH pages you need to add that as a secret and then expose the secret as an env var with:

env:
  ASTRO_STUDIO_APP_TOKEN: ${{secrets.ASTRO_STUDIO_APP_TOKEN }}

Replies: 1 comment 1 reply

Comment options

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

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