Skip to content

Commit

Permalink
fix: next.js config
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Nov 21, 2023
1 parent dce941a commit 9ad8312
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ const nextConfig = {
rewrites: async () => {
return [
{
source: '/api/core/:path*',
destination: 'http://localhost:5328/api/core/:path*'
// source: devMode ? '/api/core/:path*' : '/api/:path*',
// destination: devMode
// ? 'http://localhost:5328/api/core/:path*'
// : '/api/:path*'
source: devMode ? '/api/core/:path*' : '/api/:path*',
destination: devMode
? 'http://localhost:5328/api/core/:path*'
: '/api/:path*'
}
];
}
Expand Down

0 comments on commit 9ad8312

Please sign in to comment.