Skip to content

Commit

Permalink
update config for redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
u-u-z committed Feb 15, 2022
1 parent 505bb11 commit 96ab76e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: false,
async redirects() {
return [
{
source: '/arweave/tx/:hash*',
destination: '/arweave/:hash*',
permanent: true,
},
]
},
// exportPathMap: async function (
// defaultPathMap,
// { dev, dir, outDir, distDir, buildId }
// ) {
// return {
// '/': { page: '/' },
// '/about': { page: '/about' },
// '/p/hello-nextjs': { page: '/post', query: { title: 'hello-nextjs' } },
// '/p/learn-nextjs': { page: '/post', query: { title: 'learn-nextjs' } },
// '/p/deploy-nextjs': { page: '/post', query: { title: 'deploy-nextjs' } },
// }
// },
}

0 comments on commit 96ab76e

Please sign in to comment.