-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
53 lines (50 loc) · 1.45 KB
/
next.config.ts
File metadata and controls
53 lines (50 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import type { NextConfig } from "next";
import path from "node:path";
const backendTraceIncludes = [
"./app.js",
"./assets/favicon.png",
"./apps/generic-parameter-simulator/**/*",
"./apps/restricted-party-screen/**/*",
"./business-dashboard.js",
"./lib/aurelianflo-mcp-bridge.js",
"./lib/aurelianflo-profile.js",
"./lib/aurelianflo-surface.js",
"./lib/facilitator-loader.js",
"./lib/merc-trust-enforcement.js",
"./lib/payment-required-compat.js",
"./lib/sim-compatible.js",
"./metrics.js",
"./routes/*.js",
"./routes/auto-local/**/*",
"./routes/generated-catalog.json",
"./well-known-x402-aurelian.json",
];
const nextConfig: NextConfig = {
outputFileTracingRoot: path.resolve(__dirname),
async rewrites() {
return [
{ source: "/icon.png", destination: "/aurelianflo-icon.png" },
];
},
serverExternalPackages: [
"@resvg/resvg-js",
"@resvg/resvg-js-win32-x64-msvc",
"@sparticuz/chromium",
"@sparticuz/chromium-min",
"docx",
"exceljs",
"pdfkit",
"playwright",
"playwright-core",
],
outputFileTracingIncludes: {
"/api/[[...path]]": backendTraceIncludes,
"/mcp/[[...path]]": backendTraceIncludes,
"/.well-known/[[...path]]": backendTraceIncludes,
"/well-known/[[...path]]": backendTraceIncludes,
"/openapi.json": backendTraceIncludes,
"/openapi-full.json": backendTraceIncludes,
"/integrations/payments-mcp": backendTraceIncludes,
},
};
export default nextConfig;