fix: isWSL check was not awaited causing always true

This commit is contained in:
UndefinedPony
2025-01-13 14:48:13 +01:00
parent f9b1c2575e
commit 1922437115

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(