I built a one page Eleventy site with a Node script. My intent was that I’d deploy the site and my build command would run the script and then build Eleventy.
So my folder has 3 files:
index.md - just a markdown file
build.js - a simple script
netlify.tom - which is:
[build]
publish = "_site/"
command = "node build && npx @11ty/eleventy"
I then ran netlify deploy
, but I get this error:
Error: No such directory /home/ray/projects/api-integration-jamstack/demos/demo4/_site! Did you forget to run a build?
But shouldn’t it have run the command when deployed which would then run Eleventy and create _site
?