fix(web): move ao-core from transpilePackages to serverExternalPackages

Next.js errors when a package is in both lists:
  'transpilePackages' conflicts with 'serverExternalPackages'

Remove @aoagents/ao-core from transpilePackages and keep it only
in serverExternalPackages. This prevents webpack from bundling
ao-core and baking import.meta.url as the build machine's path.
This commit is contained in:
i-trytoohard 2026-05-20 07:34:21 +00:00
parent eec8ffe2ad
commit 79716849ff
1 changed files with 0 additions and 1 deletions

View File

@ -9,7 +9,6 @@ const homeDir = os.homedir().replace(/\\/g, "/");
const nextConfig = {
outputFileTracingRoot: path.join(__dirname, "../.."),
transpilePackages: [
"@aoagents/ao-core",
"@aoagents/ao-plugin-agent-claude-code",
"@aoagents/ao-plugin-agent-codex",
"@aoagents/ao-plugin-agent-opencode",