Skip to content

Commit

Permalink
feat: keeper redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
RPDeshaies committed Nov 6, 2024
1 parent 609e4b5 commit 76c5f69
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
32 changes: 31 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
images: {
unoptimized: true,
},
redirects: async () => {
return [
{
source: "/",
destination: "https://keeper.farirpgs.com",
permanent: false,
},
{
source: "/browse",
destination: "https://keeper.farirpgs.com",
permanent: false,
},
{
source: "/creators/:creatorSlug",
destination: "https://keeper.farirpgs.com/creators/:creatorSlug",
permanent: false,
},
{
source: "/creators/:creatorSlug/projects/:projectSlug",
destination:
"https://keeper.farirpgs.com/resources/:creatorSlug/:projectSlug",
permanent: false,
},
{
source: "/creators/:creatorSlug/projects/:projectSlug/:pageSlug",
destination:
"https://keeper.farirpgs.com/resources/:creatorSlug/:projectSlug/:pageSlug",
permanent: false,
},
];
},
};

module.exports = nextConfig;

0 comments on commit 76c5f69

Please sign in to comment.