Skip to content

Commit ca9ee66

Browse files
committed
fix: redirect and middleware update
1 parent f9b026a commit ca9ee66

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

next.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ module.exports = withBundleAnalyzer({
4848
destination: '/settings/profile',
4949
permanent: false,
5050
},
51+
{
52+
source: '/import',
53+
destination: '/settings/imports',
54+
permanent: true,
55+
},
5156
{
5257
source: '/discord',
5358
destination: 'https://stats.fm/discord',

src/middleware.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export const middleware = (request: NextRequest) => {
2828
};
2929

3030
export const config = {
31-
matcher: ['/import', '/settings/:path*'],
31+
matcher: ['/settings/:path*'],
3232
};

0 commit comments

Comments
 (0)