sanity-io / sanity-template-astro-clean

Clean starter template with Astro
https://template-astro-clean.sanity.build/
119 stars 39 forks source link

sanity@latest init --env omits "STUDIO" from variable name #24

Closed kylehadland closed 1 year ago

kylehadland commented 1 year ago

From terminal logs:

Detected framework Astro, using prefix 'PUBLIC_'
Appended PUBLIC_SANITY_PROJECT_ID="xxxxxxxx"
Appended PUBLIC_SANITY_DATASET="production"

Should be PUBLIC_SANITY_STUDIO_PROJECT_ID and PUBLIC_SANITY_STUDIO_DATASET.

Works as expected once manually renamed.

kmelve commented 1 year ago

Thanks for reporting! It seems like we have a lot of different environment keys floating around (what's generated by the CLI versus what's generated by Vercel).

For now, I just added the Vercel keys as a fallback in https://github.com/sanity-io/sanity-template-astro-clean/pull/25.