Skip to content

Commit

Permalink
ci: update reference docs (withastro#10440)
Browse files Browse the repository at this point in the history
Co-authored-by: delucis <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent ade39fa commit 340d816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/en/reference/configuration-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ Control the output file format of each page. This value may be set by an adapter

#### Effect on Astro.url
Setting `build.format` controls what `Astro.url` is set to during the build. When it is:
- `directory` - The `Astro.url.pathname` will include a trailing slash to mimic folder behavior; ie `/foo/`.
- `file` - The `Astro.url.pathname` will include `.html`; ie `/foo.html`.
- `directory` - The `Astro.url.pathname` will include a trailing slash to mimic folder behavior. (e.g. `/foo/`)
- `file` - The `Astro.url.pathname` will include `.html`. (e.g. `/foo.html`)

This means that when you create relative URLs using `new URL('./relative', Astro.url)`, you will get consistent behavior between dev and build.

Expand Down

0 comments on commit 340d816

Please sign in to comment.