Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrid committed Feb 18, 2024
1 parent 74dfd37 commit 26e0b86
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/** @type {import("next").NextConfig} */
const config = {
async rewrites() {
return [
{
source: '/stats/:match*',
destination: `${process.env.ANALYTICS_DOMAIN}/:match*`,
},
];
return process.env.ANALYTICS_DOMAIN
? [
{
source: '/stats/:match*',
destination: `${process.env.ANALYTICS_DOMAIN}/:match*`,
},
]
: [];
},
};

Expand Down

0 comments on commit 26e0b86

Please sign in to comment.