feat(mf): join VNClagoon Suite microfrontends group
Wrap next.config with withMicrofrontends; add @vercel/microfrontends. Served at /mail under the suite shell (via NEXT_PUBLIC_BASE_PATH set on the Vercel project). Logged in vnc/VNC-CHANGES.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
eace443fdf
commit
0189935e7b
+6
-1
@@ -1,5 +1,7 @@
|
||||
import type { NextConfig } from "next";
|
||||
import createNextIntlPlugin from "next-intl/plugin";
|
||||
// VNC: microfrontends child — served under /mail by the VNClagoon Suite shell.
|
||||
import { withMicrofrontends } from "@vercel/microfrontends/next/config";
|
||||
import { execSync } from "child_process";
|
||||
import { readFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
@@ -64,4 +66,7 @@ const nextConfig: NextConfig = {
|
||||
};
|
||||
|
||||
const withNextIntl = createNextIntlPlugin();
|
||||
export default withNextIntl(nextConfig);
|
||||
// VNC: wrap with microfrontends so this app participates in the VNClagoon
|
||||
// Suite group (asset-prefix isolation + routing). Mounted at /mail via the
|
||||
// NEXT_PUBLIC_BASE_PATH env var (build-time) set on the Vercel project.
|
||||
export default withMicrofrontends(withNextIntl(nextConfig));
|
||||
|
||||
Reference in New Issue
Block a user