Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update pages to include published version when using production #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ElianCodes
Copy link

Hey there!

This PR changes the [...slug].astro page component to use the 'published' variant instead of the 'draft' variant depending on the build environment.

Reasoning:
When I was trying out this example for the first time, I couldn't get why I got a 401 Unauthorized error when building with a public token in my prod environment. This PR fixes that

Copy link

netlify bot commented Jun 26, 2024

Deploy Preview for storyblok-astro-ultimate-tutorial failed.

Name Link
🔨 Latest commit d170bc2
🔍 Latest deploy log https://app.netlify.com/sites/storyblok-astro-ultimate-tutorial/deploys/667bdd37d113fb0008996c21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant