What’s the right Netlify build command to use for building a site that’s designed to use Eleventy?
After experimenting with Hylia and deciding I wanted to give Eleventy + Netlify a try, I created a new site from scratch that builds and loads just fine on my local development system using Eleventy at the command line.
I then created a github repo to use to deploy via Netlify, have associated that repo with my Netlify account so I can access it in my Netlify dashboard, but cannot figure out what build command to use to successfully build and deploy the site on Netlify.
I’ve discovered that other repos use netlify.toml to locally configure builds so have copied that and tried a variety of build command settings that have all failed. Netlify seems to never be able to find my build command, which I’ve tried as follows:
command = “eleventy”
command = “DEBUG=* eleventy”
command = “DEBUG=* npx eleventy”
Error messages in the log are of the form:
11:18:44 AM: Executing user command: DEBUG=* npx eleventy
11:18:46 AM: npx: installed 1 in 2.269s
11:18:46 AM: command not found: eleventy
What’s the right build command for Netlify to build my site using Eleventy??
My Netlify instance name is “admiring-wing-e1407e”
None of the common build configuration documentation even mentions Eleventy. I know I need to use Eleventy to turn my site source into a deployable site (via the _site publish folder) as that’s what I’ve been doing during development.
Thanks for helping a beginner get started with Netlify (and Eleventy).
David