our services never get to see the .env.local as it is listed out here and never pushed, i think.
i would suggest trying to set the environment variables you have in your local file via our UI:
Netlify App[YOUR SITE NAME]/settings/deploys#environment
that way, you don’t have to include anything private in your repository, but can still access them when you deploy.