Skip to content

Commit e0be24a

Browse files
committed
Use 301 redirects for trailing slash redirects
1 parent a21be44 commit e0be24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export function createApp(siteId: string) {
332332
manifestPaths[`${urlPath}/index.html`]
333333
) {
334334
const destination = `${urlPath}/`;
335-
res.redirect(302, destination);
335+
res.redirect(301, destination);
336336
return;
337337
}
338338
console.log(`Blob not found in ${blobPrefix} -> ${req.path}`);

0 commit comments

Comments
 (0)