Skip to content

Commit 14de29d

Browse files
committed
Update redirects for /schedule path
1 parent 4fadec2 commit 14de29d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

next.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@ export default withLess(
6868
// `statusCode` is not undefined or valid statusCode for route {"source":"/conf/attendee/:path*","destination":"https://graphql-conf-attendee-nextjs.vercel.app/:path*","statusCode":200}
6969
// `statusCode` is not undefined or valid statusCode for route {"source":"/swapi-graphql/:path*","destination":"https://graphql.github.io/swapi-graphql/:path*","statusCode":200}
7070
// Valid redirect statusCode values are 301, 302, 303, 307, 308
71-
redirects: () => vercelJSON.redirects.filter(o => o.statusCode !== 200),
71+
redirects: () => [
72+
...vercelJSON.redirects.filter(o => o.statusCode !== 200),
73+
{
74+
source: "/schedule",
75+
destination: "/conf/2024/schedule",
76+
permanent: true, // This ensures the redirect is permanent (status code 301)
77+
},
78+
],
7279
async rewrites() {
7380
return [
7481
{

0 commit comments

Comments
 (0)