Skip to content

Commit

Permalink
fix: update legacy redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Apr 4, 2024
1 parent a058eb3 commit d793c23
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,40 @@ const config = {
/** @type {Awaited<ReturnType<NonNullable<NextConfig["redirects"]>>>} */
const redirects = [
{
source: "/resource/posts/:path*",
destination: "/resources/:path*",
source: "/:locale(de|en)?/resource/posts/lesson-1-make-a-plan",
destination: "/resources/semantickraus-lesson-1-make-a-plan",
permanent: true,
},
{
source: "/curriculum/:path*",
destination: "/curricula/:path*",
source: "/:locale(de|en)?/resource/posts/lesson-2-meet-the-data",
destination: "/resources/semantickraus-lesson-2-meet-the-data",
permanent: true,
},
{
source: "/resource/posts/lesson-1-make-a-plan",
destination: "/resources/semantickraus-lesson-1-make-a-plan",
source: "/:locale(de|en)?/resource/posts/lesson-3-copy-and-paste",
destination: "/resources/semantickraus-lesson-3-copy-and-paste",
permanent: true,
},
{
source: "/resource/posts/lesson-2-meet-the-data",
destination: "/resources/semantickraus-lesson-2-meet-the-data",
source: "/:locale(de|en)?/resource/posts/:path*",
destination: "/resources/:path*",
permanent: true,
},
{
source: "/resource/posts/lesson-3-copy-and-paste",
destination: "/resources/semantickraus-lesson-3-copy-and-paste",
source: "/:locale(de|en)?/curriculum/:path*",
destination: "/curricula/:path*",
permanent: true,
},
{
source: "/:locale(de|en)?/resources/page/:path*",
destination: "/resources",
permanent: false,
},
{
source: "/:locale(de|en)?/curricula/page/:path*",
destination: "/curricula",
permanent: false,
},
];

return Promise.resolve(redirects);
Expand Down

0 comments on commit d793c23

Please sign in to comment.