Skip to content

Commit

Permalink
feat(next.config): add experimental server components and redirect rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Callenowy committed Jan 29, 2024
1 parent fb686f5 commit 547c60d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@ const nextConfig = {
reactStrictMode: true,
poweredByHeader: false,
output: 'standalone',

experimental: {
serverComponentsExternalPackages: ['@node-rs/argon2'],
},

async redirects() {
return [
{
source: '/',
destination: '/server-list',
permanent: true,
},
{
source: '/auth/login',
destination: '/server-list',
permanent: true,
has: [
{
type: 'cookie',
key: 'authjs.session-token',
},
],
},
];
},
};

export default nextConfig;

0 comments on commit 547c60d

Please sign in to comment.