NuxtN
Nuxt16mo ago
1 reply
Goku ごくう

Netlify deployment with Turborepo mono repo

I have a turborepo repository using pnpm and workspaces. I use Netlify to deploy my client application. I use build, not generate.

I've set up the Netlify application using a GitHub repository, and it automatically detected the repository structure and added some build settings. I manually changed the "Publish directory" from dist to
.output
, and I can see that Netlify recognizes the correct folder.

**Build settings**
Runtime: Not set
Base directory: /
Package directory: apps/client
Build command: turbo run build --filter client
Publish directory: apps/client/.output
Functions directory: netlify/functions
...


The deployment succeeds, but the page is not found. I guess the issue is with the folders. There are two folders: public and server, and Netlify can't know which folder and file will be used.

Can someone help me with the issue?
CleanShot_2024-10-02_at_21.38.272x.png
Was this page helpful?