Skip to content

Commit 9cce84d

Browse files
authored
remove trailing slash (and maybe break everything?)
Added build configuration to generate file format URLs.
1 parent cc75a95 commit 9cce84d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web/astro.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import starlightScrollToTop from 'starlight-scroll-to-top'
77

88
export default defineConfig({
99
site: SITE_URL,
10+
build: {
11+
// Generates /reference/createBlip.html instead of /reference/createBlip/index.html
12+
// which makes the canonical URL not have a trailing slash.
13+
format: 'file',
14+
},
1015
redirects: {
1116
'/reference/matrix': '/reference/Matrix',
1217
},

0 commit comments

Comments
 (0)