Skip to content

Commit 28715f2

Browse files
committed
misleading
1 parent 14de29d commit 28715f2

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

next.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,7 @@ 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: () => [
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-
],
71+
redirects: () => vercelJSON.redirects.filter(o => o.statusCode !== 200),
7972
async rewrites() {
8073
return [
8174
{

vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,11 @@
514514
"source": "/conf/speak/",
515515
"destination": "/conf/2024/speak/",
516516
"permanent": true
517+
},
518+
{
519+
"source": "/schedule/",
520+
"destination": "/conf/2024/schedule/",
521+
"permanent": true
517522
}
518523
]
519524
}

0 commit comments

Comments
 (0)