Skip to content

Commit

Permalink
Add proxy for dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Jan 7, 2025
1 parent 886c52f commit 7a5f9df
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig =
{ async rewrites() {
return [
{
source: '/api/v1/:path*',
destination: 'http://localhost:8080/:path*' // Proxy to Backend
}
]
}
};

export default nextConfig;

0 comments on commit 7a5f9df

Please sign in to comment.