We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e068d67 commit fcdca6fCopy full SHA for fcdca6f
src/app/api/microfrontend-routing/route.ts
@@ -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
@@ -0,0 +1,8 @@
+{
+ "routes": [
+ {
+ "src": "/.well-known/vercel/microfrontend-routing",
+ "dest": "/api/microfrontend-routing"
+ }
+ ]
0 commit comments