Closed
Description
[REQUIRED] Environment info
firebase-tools: 13.29.1
Platform: Windows
[REQUIRED] Test case
Nextjs project with .env.* files
[REQUIRED] Steps to reproduce
- Create new nextjs project
- Create .env.production file
- Set up firebase
- Create "production" alias
- Deploy
[REQUIRED] Expected behavior
Expected firebase-tools to pick up .env.production
[REQUIRED] Actual behavior
.env.production is not picked up
Problem
Here we're supposed to find all environment variable files. The issue is that glob doesn't support backslashes. They're instead used for escaping something or another and node's path.join (in getProjectPath) does return paths with backslashes.
Potential solution
Replace all backslashes with forwards
const getProjectPath = (...args: string[]) => join(projectRoot, source, ...args).replaceAll("\\","/");