Skip to content

Commit fcdca6f

Browse files
committed
chore: Added vercel.json for microfrontend routing configuration
1 parent e068d67 commit fcdca6f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { NextResponse } from 'next/server';
2+
3+
export async function GET() {
4+
// microfrontend routing configuration
5+
const config = {
6+
version: 1,
7+
routes: [
8+
// microfrontend routes
9+
{ src: '/microfrontend', dest: 'https://ascii-repotree.vercel.app' }
10+
],
11+
};
12+
13+
return NextResponse.json(config);
14+
}

vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"routes": [
3+
{
4+
"src": "/.well-known/vercel/microfrontend-routing",
5+
"dest": "/api/microfrontend-routing"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)