mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: remove register when is self hosted
This commit is contained in:
@@ -178,12 +178,14 @@ export default function Home({ IS_CLOUD }: Props) {
|
|||||||
|
|
||||||
<div className="flex flex-row justify-between flex-wrap">
|
<div className="flex flex-row justify-between flex-wrap">
|
||||||
<div className="mt-4 text-center text-sm flex flex-row justify-center gap-2">
|
<div className="mt-4 text-center text-sm flex flex-row justify-center gap-2">
|
||||||
<Link
|
{IS_CLOUD && (
|
||||||
className="hover:underline text-muted-foreground"
|
<Link
|
||||||
href="/register"
|
className="hover:underline text-muted-foreground"
|
||||||
>
|
href="/register"
|
||||||
Create an account
|
>
|
||||||
</Link>
|
Create an account
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-4 text-sm flex flex-row justify-center gap-2">
|
<div className="mt-4 text-sm flex flex-row justify-center gap-2">
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ const Home: NextPage = () => {
|
|||||||
const [spec, setSpec] = useState({});
|
const [spec, setSpec] = useState({});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Esto solo se ejecutará en el cliente
|
|
||||||
if (data) {
|
if (data) {
|
||||||
const protocolAndHost = `${window.location.protocol}//${window.location.host}/api`;
|
const protocolAndHost = `${window.location.protocol}//${window.location.host}/api`;
|
||||||
const newSpec = {
|
const newSpec = {
|
||||||
|
|||||||
Reference in New Issue
Block a user