From b51d515d2dfdc0ba5d5a93029f4de82c3babe9bc Mon Sep 17 00:00:00 2001 From: r-southworth <105446541+r-southworth@users.noreply.github.com> Date: Tue, 27 Jun 2023 11:15:10 -0400 Subject: [PATCH] Update astro.ts to clarify configuration settings for base (#7392) Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> Co-authored-by: Chris Swithinbank --- packages/astro/src/@types/astro.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index cca5753fe..52d15211b 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -546,10 +546,12 @@ export interface AstroUserConfig { * ``` * * When using this option, all of your static asset imports and URLs should add the base as a prefix. You can access this value via `import.meta.env.BASE_URL`. + * + * By default, the value of `import.meta.env.BASE_URL` includes a trailing slash. If you have the [`trailingSlash`](https://docs.astro.build/en/reference/configuration-reference/#trailingslash) option set to `'never'`, you will need to add it manually in your static asset imports and URLs. * * ```astro * About - * + * * ``` */ base?: string;