Skip to content

Commit ac9cdc7

Browse files
committed
feat: add redirects to sessionize
1 parent 8d50607 commit ac9cdc7

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

next.config.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const nextConfig: NextConfig = {
2121
postHogBaseURL === "https://us.i.posthog.com"
2222
? "https://us-assets.i.posthog.com"
2323
: postHogBaseURL === "https://eu.i.posthog.com"
24-
? "https://eu-assets.i.posthog.com"
25-
: process.env.NEXT_PUBLIC_POSTHOG_ASSET_HOST || "";
24+
? "https://eu-assets.i.posthog.com"
25+
: process.env.NEXT_PUBLIC_POSTHOG_ASSET_HOST || "";
2626

2727
return [
2828
{
@@ -39,6 +39,22 @@ const nextConfig: NextConfig = {
3939
},
4040
];
4141
},
42+
43+
async redirects() {
44+
return [
45+
{
46+
source: "/schedule",
47+
destination: "https://pycon-kenya-2025.sessionize.com/schedule",
48+
permanent: true, // Use true for 308 permanent redirect, false for 307 temporary
49+
},
50+
{
51+
source: "/speakers",
52+
destination: "https://pycon-kenya-2025.sessionize.com/speakers",
53+
permanent: true, // Use true for 308 permanent redirect, false for 307 temporary
54+
},
55+
];
56+
},
57+
4258
// This is required to support PostHog trailing slash API requests
4359
skipTrailingSlashRedirect: true,
4460
};

0 commit comments

Comments
 (0)