Skip to content

Commit

Permalink
Add temporary redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Jul 27, 2024
1 parent 88635b9 commit 86e2bcf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
const isProd = process.env.NODE_ENV === "production";

let redirects = [];
if (isProd) {
redirects = [
{ source: "/", destination: "/cars", permanent: false },
{ source: "/coe", destination: "/coe/prices", permanent: false },
];
}

/** @type {import('next').NextConfig} */
const nextConfig = {
logging: {
fetches: {
fullUrl: true,
},
},
async redirects() {
return redirects;
},
};

module.exports = nextConfig;

0 comments on commit 86e2bcf

Please sign in to comment.