diff --git a/src/content/docs/en/guides/cms/strapi.mdx b/src/content/docs/en/guides/cms/strapi.mdx index e41fe5c3e8d47..e83e901fc01d4 100644 --- a/src/content/docs/en/guides/cms/strapi.mdx +++ b/src/content/docs/en/guides/cms/strapi.mdx @@ -31,10 +31,9 @@ To add your Strapi URL to Astro, create a `.env` file in the root of your projec STRAPI_URL="http://127.0.0.1:1337" // or use your IP address ``` -Now, you can use this environment variable in your Astro project. +Restart the dev server to use this environment variable in your Astro project. If you would like to have IntelliSense for your environment variable, you can create a `env.d.ts` file in the `src/` directory and configure `ImportMetaEnv` like this: - ```ts title="src/env.d.ts" interface ImportMetaEnv { readonly STRAPI_URL: string;