Skip to content

Commit

Permalink
Merge branch 'master' of github.com:thirdeye-dev/thirdeye
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Dec 8, 2023
2 parents 100d21b + 5c2034b commit 1cb4149
Show file tree
Hide file tree
Showing 9 changed files with 5,994 additions and 12 deletions.
19 changes: 14 additions & 5 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@ const nextConfig = {
},
];
},
};

module.exports = removeImports(nextConfig);
async rewrites() {
const rewrites = [];

module.exports.typescript = {
ignoreBuildErrors: true,
// Proxy to backend if not localhost
if (!backendUrl.includes("localhost")) {
rewrites.push({
source: "/api/v1/:slug*",
destination: `${backendUrl}/:slug*`,
});
}

return rewrites;
}
};

module.exports = removeImports(nextConfig);
Loading

0 comments on commit 1cb4149

Please sign in to comment.