diff --git a/src/index.ts b/src/index.ts index 979e3f0..a8945d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -275,7 +275,7 @@ class ServerlessDynamoDBPlugin implements Plugin { ...this.options, }; - if (options.dbPath && path.isAbsolute(options.dbPath)) { + if (options.dbPath && !path.isAbsolute(options.dbPath)) { options.dbPath = path.join(this.serverless.config.servicePath, options.dbPath); }