We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6bc71c commit 2636301Copy full SHA for 2636301
src/index.js
@@ -393,7 +393,7 @@ class LocalstackPlugin {
393
// - https://2e22431f.execute-api.us-east-1.localhost
394
// - https://2e22431f.execute-api.us-east-1.localhost.localstack.cloud
395
// - https://2e22431f.execute-api.us-east-1.amazonaws.com
396
- const regex2 = /[^\s:]*:\/\/([^.]+)\.execute-api\.[^/]+(\/([^/]+)(\/.*)?)?/g;
+ const regex2 = /[^\s:]*:\/\/([^.]+)\.execute-api\.[^/]+(([^/]+)(\/.*)?)?\/*$/g;
397
const replace2 = `https://$1.execute-api.localhost.localstack.cloud:${edgePort}$2`;
398
endpoints[idx] = entry.replace(regex2, replace2);
399
});
0 commit comments