So I’ve got to the bottom of this, and not 100% certain which part fixed it. I was missing the .ebignore from the root folder so I added that. It only contains
/node_modules/
I had also removed the
.elastisticbeanstalk → config.yml
And put that back in place.
It is now doing as expected.