Vite edge build error ( pnpm --filter vite-edge... build )

Hello Guys,

I go error when building:

11:51:28 PM: Configuration error
11:51:28 PM: ────────────────────────────────────────────────────────────────
11:51:28 PM: ​
11:51:28 PM: Error message
11:51:28 PM: Deploy did not succeed: Deploy directory “build/client” does not exist
11:51:28 PM: ​
11:51:28 PM: Resolved config
11:51:28 PM: build:
11:51:28 PM: command: pnpm --filter vite-edge… build
11:51:28 PM: commandOrigin: config
11:51:28 PM: publish: /opt/build/repo/build/client
11:51:28 PM: publishOrigin: config
11:51:28 PM: functionsDirectory: /opt/build/repo/netlify/functions
11:51:28 PM: headers:
11:51:29 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2

Any solutions?

Based on the error reason

The solution is to configure the output directory correctly.

any clue the correct dir?

I cannot see the project source so I can offer no clues.

Im using vite and remix

source structure come like this

A cut-down screenshot of the directory structure of the project provides no useful information.

If you are unable to provide the link to the public git repository (that’s your choice and fine if you cannot) I suggest you consult the Vite documentation and Netlify Build Configuration documentation to determine the correct settings for your project.

Also check out the following