Skip to content

Commit 3fac697

Browse files
fix: legacy path redirects (pricing/faq/privacy) and Terms in footer
1 parent c3e60cc commit 3fac697

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

next.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3+
async redirects() {
4+
return [
5+
{ source: '/pricing', destination: '/', permanent: true },
6+
{ source: '/pricing/', destination: '/', permanent: true },
7+
{ source: '/faq', destination: '/', permanent: true },
8+
{ source: '/faq/', destination: '/', permanent: true },
9+
{ source: '/privacy', destination: '/terms', permanent: true },
10+
{ source: '/privacy/', destination: '/terms', permanent: true },
11+
{ source: '/success', destination: '/', permanent: true },
12+
{ source: '/success/', destination: '/', permanent: true },
13+
{ source: '/cancel', destination: '/', permanent: true },
14+
{ source: '/cancel/', destination: '/', permanent: true },
15+
{ source: '/refund', destination: '/terms', permanent: true },
16+
{ source: '/refund/', destination: '/terms', permanent: true },
17+
]
18+
},
319
async headers() {
420
return [
521
{

src/components/SiteFooter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const MONO = `var(--font-courier), 'Courier New', monospace`
77

88
const LINKS = [
99
{ href: '/about', label: 'About' },
10+
{ href: '/terms', label: 'Terms' },
1011
] as const
1112

1213
const GitHubIcon = () => (

0 commit comments

Comments
 (0)