You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Vercel detects a Turborepo (containing build pipeline), the Output Directory no longer falls back to . if public does not exist after build.
I have a minimal reproducible repo which is simply a Turborepo with a single app, which is nothing but a static index.html page: https://github.com/yescomment/vc-mre-turbooutputbug/. Deploy it to Vercel with a root directory of ./apps/static-html.
When even an empty build key is added to turbo.json, the static app encounters the build error:
Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.
…even though the Output Directory setting continues to display `public` if it exists, or `.`
Perhaps this a documented default behavior of Turborepo? However I think the Output Directory placeholder value should update to show that . will no longer be automatically used if public does not exist.
The text was updated successfully, but these errors were encountered:
This turbo.json doesn't cache anything. You need an outputs key so that turbo knows what to restore from cache if/when it hits cache.
In your issue you wrote "Deploy it to Vercel with a root directory of ./apps/static-html" - but I don't see a directory of ./apps/static-html in your repository. Was this a typo and you meant ./apps/static-site? That directory is in the repository. If a Root Directory is set that isn't there, I would expect problems. 😄
When Vercel detects a Turborepo (containing
build
pipeline), the Output Directory no longer falls back to.
ifpublic
does not exist after build.I have a minimal reproducible repo which is simply a Turborepo with a single app, which is nothing but a static
index.html
page: https://github.com/yescomment/vc-mre-turbooutputbug/. Deploy it to Vercel with a root directory of./apps/static-html
.No Turbo detected (example public deployment)
When the
build
key is removed fromturbo.json
, the app deploys without error, as the static site has nopublic
directory, so falls back to serving.
:Turbo detected (example public deployment)
When even an empty
build
key is added toturbo.json
, the static app encounters the build error:…even though the Output Directory setting continues to display
`public` if it exists, or `.`
Perhaps this a documented default behavior of Turborepo? However I think the Output Directory placeholder value should update to show that
.
will no longer be automatically used ifpublic
does not exist.The text was updated successfully, but these errors were encountered: