Skip to content

Commit

Permalink
slot use nextjs redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
broody committed Aug 25, 2024
1 parent c655ffb commit 788ecaf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/keychain/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@ const nextConfig = {
config.experiments = { ...config.experiments, asyncWebAssembly: true };
return config;
},
redirects: async function () {
return [
{
source: '/slot/auth',
destination: '/slot',
permanent: true
},
{
source: '/slot/auth/success',
destination: '/success',
permanent: true
},
{
source: '/slot/auth/failure',
destination: '/failure',
permanent: true
}
]
}
};

module.exports = nextConfig;
File renamed without changes.

0 comments on commit 788ecaf

Please sign in to comment.