From b757efbb96a28e995bb18076f95e0e34b49b44ff Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 24 Sep 2020 11:42:57 +0200 Subject: [PATCH] Fix cwd in getConfigPath to actual cwd --- packages/internal/src/paths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/internal/src/paths.ts b/packages/internal/src/paths.ts index 1a6fa7de1e8e..c665ec61aafd 100644 --- a/packages/internal/src/paths.ts +++ b/packages/internal/src/paths.ts @@ -69,7 +69,7 @@ const PATH_WEB_DIR_CONFIG_POSTCSS = 'web/config/postcss.config.js' /** * Search the parent directories for the Redwood configuration file. */ -export const getConfigPath = (cwd: string = __dirname): string => { +export const getConfigPath = (cwd: string = process.cwd()): string => { const configPath = findUp(CONFIG_FILE_NAME, { cwd }) if (!configPath) { throw new Error(