diff --git a/lib/cli/resolve-configuration-path.js b/lib/cli/resolve-configuration-path.js index 45b82abd8..dceef0bc2 100644 --- a/lib/cli/resolve-configuration-path.js +++ b/lib/cli/resolve-configuration-path.js @@ -24,7 +24,7 @@ module.exports = async () => { 'INVALID_SERVICE_CONFIG_PATH' ); } - const customConfigPath = path.resolve(process.cwd(), customConfigName); + const customConfigPath = path.resolve(customConfigName); if (process.cwd() !== path.dirname(customConfigPath)) { throw new ServerlessError( 'Invalid "--config" value: config cannot be nested in sub-directory',