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:
parent
eec8ffe2ad
commit
79716849ff
|
|
@ -9,7 +9,6 @@ const homeDir = os.homedir().replace(/\\/g, "/");
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
outputFileTracingRoot: path.join(__dirname, "../.."),
|
outputFileTracingRoot: path.join(__dirname, "../.."),
|
||||||
transpilePackages: [
|
transpilePackages: [
|
||||||
"@aoagents/ao-core",
|
|
||||||
"@aoagents/ao-plugin-agent-claude-code",
|
"@aoagents/ao-plugin-agent-claude-code",
|
||||||
"@aoagents/ao-plugin-agent-codex",
|
"@aoagents/ao-plugin-agent-codex",
|
||||||
"@aoagents/ao-plugin-agent-opencode",
|
"@aoagents/ao-plugin-agent-opencode",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue