Merge pull request #1110 from szwabodev/fix/wslCheck

fix: isWSL check was not awaited
This commit is contained in:
Mauricio Siu
2025-01-13 22:58:15 -06:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ export const isWSL = async () => {
/** Returns the Docker host IP address. */
export const getDockerHost = async (): Promise<string> => {
if (process.env.NODE_ENV === "production") {
if (process.platform === "linux" && !isWSL()) {
if (process.platform === "linux" && !(await isWSL())) {
try {
// Try to get the Docker bridge IP first
const { stdout } = await execAsync(