Skip to content

Commit 8ded1d0

Browse files
committed
add redirects
1 parent 63a5f95 commit 8ded1d0

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

apps/www/app/_utils/redirects.server.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ export const designsystemetRedirects = (pathname: string) => {
1414
return null;
1515
};
1616

17-
const redirects = [
17+
type Redirect = {
18+
from: string;
19+
to: string;
20+
};
21+
22+
const redirects: Redirect[] = [
1823
{
1924
from: '/komponenter',
2025
to: '/no/components',
@@ -202,4 +207,20 @@ const redirects = [
202207
from: '/no/fundamentals/figma/get-started',
203208
to: '/no/fundamentals/start-here/preparations#figma',
204209
},
210+
{
211+
from: '/no/fundamentals/code/react',
212+
to: '/no/fundamentals/code/setup',
213+
},
214+
{
215+
from: '/no/fundamentals/code/other-frameworks',
216+
to: '/no/fundamentals/code/setup',
217+
},
218+
{
219+
from: '/en/fundamentals/code/react',
220+
to: '/en/fundamentals/code/setup',
221+
},
222+
{
223+
from: '/en/fundamentals/code/other-frameworks',
224+
to: '/en/fundamentals/code/setup',
225+
},
205226
];

0 commit comments

Comments
 (0)