You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
[REQUIRED] Environment info
firebase-tools: 13.29.1
Platform: Windows
[REQUIRED] Test case
Nextjs project with .env.* files
[REQUIRED] Steps to reproduce
[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("\\","/");
The text was updated successfully, but these errors were encountered: