#@payloadcms/next-payload fails on vercel

18 messages · Page 1 of 1 (latest)

simple coyote
junior vesselBOT
half cradle
#

Same issue:

zenith lichen
#
    outputFileTracingExcludes: {
      '*': [
        'node_modules/@swc/core-linux-x64-gnu',
        'node_modules/@swc/core-linux-x64-musl',
      ],
    },
  },
#

This worked for me, you'll need to replace those modules with your paths.

simple coyote
#

I added this but it looks like it doesn' seem to work for me,

    outputFileTracingExcludes: {
      "*": [
        "node_modules/.pnpm/@[email protected]",
        "node_modules/.pnpm/@[email protected]",
      ],
    },

I give up, at this point I've encountered too many issues to continue using this cms. Probably just going to migrate to something better

zenith lichen
#

I was using it with workspaces, and I had to add that setting to both the my frontend next.config.js as well as my cms next.config.js.

This is the github thread from vercel that I was working from - https://github.com/vercel/next.js/issues/42641

half cradle
#

Still doesn't work for me. I use pnpm and turborepo and tried all of these with no success. experimental: { outputFileTracingExcludes: { "*": [ "./**/node_modules/@swc/core-linux-x64-gnu", "./**/node_modules/@swc/core-linux-x64-musl", "./**/node_modules/@swc/core", "./**/node_modules/esbuild/linux", "./**/node_modules/webpack", "./**/node_modules/rollup", "./**/node_modules/terser", "../../**/node_modules/@swc/core-linux-x64-gnu", "../../**/node_modules/@swc/core-linux-x64-musl", "../../**/node_modules/@swc/core", "../../**/node_modules/esbuild/linux", "../../**/node_modules/webpack", "../../**/node_modules/rollup", "../../**/node_modules/terser", "../../**/node_modules/@swc/core/**/*", "./**/node_modules/@swc/core/**/*", ], }, }, outputFileTracing: true,

#

Noone else seems to have 'node_modules/@swc/core' as a large dependency except for me. Now I am just lost.

ionic temple
simple coyote
#

Sean appreciate it mate but I think I just don't have the bandwidth to go through each of them and fix it. I spent almost whole of last week working through and around gotchas with payload, most important issue for me was that payload cloud didn't work and elliot said that there's no better way to fix it right now 😦
Anyways, I've mentioned few of those issues here and some on github. I can probably give better feedback later but I've to ship something this week haha

ionic temple
zenith lichen
half cradle
#

Nope still doesn't work. I've created ~30 vercel builds trying different things. outputFileTracingExcludes: { "*": [ "./**/node_modules/@swc/core-linux-x64-gnu", "./**/node_modules/@swc/core-linux-x64-musl", "./**/node_modules/esbuild/linux", "./**/node_modules/webpack", "./**/node_modules/rollup", "./**/node_modules/terser", "**swc/core**", ], }, outputFileTracingRoot: path.join(__dirname, "../../"), Heres my current config and image of dependencies. Got my dependencies to look like this as I stopped hoisting my node_modules (necessary for expo).

half cradle
#

Idk what else to do

half cradle
#

@zenith lichen Was able to fix for now by using fetch instead of the local api in server components. Thanks for taking a look. Will just stick to fetch till the local api gets more stable in next-payload ig.

#

Also reduced my build time by like 2mins