mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(providers): add gitlab bitbucket and github providers
This commit is contained in:
13
apps/dokploy/utils/hooks/use-url.ts
Normal file
13
apps/dokploy/utils/hooks/use-url.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
export const useUrl = () => {
|
||||
const [url, setUrl] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
const protocolAndHost = `${window.location.protocol}//${window.location.host}`;
|
||||
|
||||
setUrl(`${protocolAndHost}`);
|
||||
}, []);
|
||||
|
||||
return url;
|
||||
};
|
||||
Reference in New Issue
Block a user