As the title states I'm trying to deploy a static site on Netlify. Locally, I run npm run generate and npm run preview and the site works perfectly, having rendered dynamic data (blog posts) from a Directus DB into static pages. However, when I deploy to Netlify the deploy settings are always set to npm run build and an output directory of dist. I can set the command to npm run generate but it still defaults to an output directory of dist. This should be .output/public. When i set the output directory, the build process still builds to dist and Netlify returns an error that it can't find .output/public. If I load my deployed site, the dynamic data from Directus is not loaded. Is there a place I can get this configured correctly?
#Deploy Static Site to Netlify
3 messages · Page 1 of 1 (latest)