Closed jmurphy-dev closed 2 months ago
Nuxt depends on all your dependencies being installed when it builds. None of them will be included in the generated output, which is self contained. But if the Nuxt builder can't read your sanity.config
then it can't get the Sanity project ID, which it needs to build your app.
Version
module: "^1.11.3" nuxt: "^3.11.2"
Reproduction
Deploy to netlify with barebones nuxt and sanity setup.
What is expected?
The module says it can auto detect santy.config.ts
What is actually happening?
Netlify throws this error in the prepare stage.
Steps to reproduce
Deploy a nuxt project with the sanity module resolving sanity.config.ts to netlify.
Additional information
Checklist
What is expected?
Nuxt sanity should not depend on the sanity dependencies being installed when deploy to netlify.
What is actually happening?
It seems like the when parsing the project information in sanity.config.ts the prepare script is throwing because the sanity dependencies arent installed.