34 lines
964 B
JavaScript
34 lines
964 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
transpilePackages: [
|
|
"@aoagents/ao-core",
|
|
"@aoagents/ao-plugin-agent-claude-code",
|
|
"@aoagents/ao-plugin-agent-opencode",
|
|
"@aoagents/ao-plugin-runtime-tmux",
|
|
"@aoagents/ao-plugin-scm-github",
|
|
"@aoagents/ao-plugin-tracker-github",
|
|
"@aoagents/ao-plugin-tracker-linear",
|
|
"@aoagents/ao-plugin-workspace-worktree",
|
|
],
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/sw.js",
|
|
headers: [
|
|
{ key: "Cache-Control", value: "no-cache, no-store, must-revalidate" },
|
|
{ key: "Service-Worker-Allowed", value: "/" },
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
// Only load bundle analyzer when ANALYZE=true (dev-only dependency)
|
|
let config = nextConfig;
|
|
if (process.env.ANALYZE === "true") {
|
|
const { default: bundleAnalyzer } = await import("@next/bundle-analyzer");
|
|
config = bundleAnalyzer({ enabled: true })(nextConfig);
|
|
}
|
|
|
|
export default config;
|