I'm trying out Vapor and Leaf 4. I started with trying to get a simple index.leaf template rendered as output.
One thing that's unclear to me is how the templates get "added" to the project and deployed to the output. When I just tried it, I got a JSON error structure with a message that the "index" template couldn't be found.
To get it to show up, I had to manually copy the Resources/Views folder from my project directory into the runtime working directory. I assume that is not how things are supposed to work.
Do I somehow have to declare this Resources directory somewhere to make it get copied automatically? How does this work when building for production, e.g. as a Docker image?