Workspace UI
This commit is contained in:
25
apps/workspace-ui/next.config.ts
Normal file
25
apps/workspace-ui/next.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
async rewrites() {
|
||||
return [
|
||||
// API → Spring Boot
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: "http://localhost:8080/api/:path*",
|
||||
},
|
||||
|
||||
// Auth → Spring Boot (Form Login / Logout)
|
||||
{
|
||||
source: "/login",
|
||||
destination: "http://localhost:8080/login",
|
||||
},
|
||||
{
|
||||
source: "/logout",
|
||||
destination: "http://localhost:8080/logout",
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user