feat(onboarding): enhance integration setup with Docker discovery and URL templating (#5607)
This commit is contained in:
1 parent
0a6467979a
commit
dd7a4908a3
68 files changed
+2922
-434
No files matched your search
@@ -1,7 +1,11 @@
|
||||
import type { ReadonlyHeaders } from "next/dist/server/web/spec-extension/adapters/headers";
|
||||
|
||||
export const removeTrailingSlash = (path: string) => {
|
||||
return path.at(-1) === "/" ? path.substring(0, path.length - 1) : path;
|
||||
let end = path.length;
|
||||
while (end > 0 && path.charAt(end - 1) === "/") {
|
||||
end--;
|
||||
}
|
||||
return path.slice(0, end);
|
||||
};
|
||||
|
||||
export const extractBaseUrlFromHeaders = (
|
||||
|
||||
Reference in new issue
Block a user