withastro / docs

Astro documentation
https://docs.astro.build/
MIT License
1.33k stars 1.49k forks source link

⚠️ Issue: Use correct comment style in .env file for Astro / Strapi integration page #9189

Closed bvold closed 2 months ago

bvold commented 2 months ago

On the Astro page : https://docs.astro.build/en/guides/cms/strapi/

Currently the content of the .env file is:

STRAPI_URL="http://127.0.0.1:1337" // or use your IP address

but if you copy this naively, it will actually append the "// or use your IP address" to your URL, because "//" is not the correct comment starter for .env files.

To fix this, the correct comment starter should be "#"

STRAPI_URL="http://127.0.0.1:1337" # or use your IP address
TheOtterlord commented 2 months ago

Good catch! Feel free to open a PR to fix this