Skip to content

Commit

Permalink
fix permanent redirect from the old showcases URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavSokov committed May 21, 2024
1 parent c903629 commit 8870e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
17 changes: 1 addition & 16 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: '/showcase-1-stripe-integration',
destination: '/showcases/stripe-integration',
permanent: true
},
{
source: '/showcase-2-prevent-account-sharing',
destination: '/showcases/prevent-account-sharing',
permanent: true
}
];
},
};
const nextConfig = {};

export default nextConfig;
2 changes: 2 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/showcase-1-stripe-integration /showcases/stripe-integration 304
/showcase-2-prevent-account-sharing /showcases/prevent-account-sharing 304

0 comments on commit 8870e5d

Please sign in to comment.