Skip to content

Commit

Permalink
restore redirects for fallback server-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
inetol committed Jun 6, 2024
1 parent 0ccf821 commit af8ff27
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ const nextConfig = Object.seal({
experimental: {
optimizeCss: true,
reactCompiler: true
},
async redirects() {
return [
{
source: '/github',
destination: 'https://github.com/jspaste',
permanent: true
},
{
source: '/favicon.ico',
destination: '/media/jspaste.bg.rounded.svg',
permanent: false
},
{
source: '/:key/raw',
destination: '/documents/:key/raw',
permanent: true
},
{
source: '/:key/r',
destination: '/documents/:key/raw',
permanent: true
}
];
}
});

Expand Down

0 comments on commit af8ff27

Please sign in to comment.