Skip to content

Commit

Permalink
feat: config
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Dec 7, 2023
1 parent e891980 commit 83016a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
12 changes: 12 additions & 0 deletions next.config.cjs → next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@ module.exports = withContentlayer({
],
},
});

/**
* Format the NextJS redirects
*/
function redirectFormatter(basePath, redirects, permanent = true) {
return redirects.map(item => {
item.basePath = false;
item.permanent = item.permanent ?? permanent;
item.destination = `${basePath}${item.destination}`;
return item;
});
}
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Page() {
<title>Solana Developer Content</title>
</Head>

<main>nothing to see here</main>
<main className="p-4">nothing to see here</main>
</>
);
}

0 comments on commit 83016a3

Please sign in to comment.