refactor: remove register when is self hosted

This commit is contained in:
Mauricio Siu
2024-10-26 19:32:29 -06:00
parent 28221a4e7a
commit 250c14738c
2 changed files with 8 additions and 7 deletions

View File

@@ -178,12 +178,14 @@ export default function Home({ IS_CLOUD }: Props) {
<div className="flex flex-row justify-between flex-wrap">
<div className="mt-4 text-center text-sm flex flex-row justify-center gap-2">
<Link
className="hover:underline text-muted-foreground"
href="/register"
>
Create an account
</Link>
{IS_CLOUD && (
<Link
className="hover:underline text-muted-foreground"
href="/register"
>
Create an account
</Link>
)}
</div>
<div className="mt-4 text-sm flex flex-row justify-center gap-2">

View File

@@ -15,7 +15,6 @@ const Home: NextPage = () => {
const [spec, setSpec] = useState({});
useEffect(() => {
// Esto solo se ejecutará en el cliente
if (data) {
const protocolAndHost = `${window.location.protocol}//${window.location.host}/api`;
const newSpec = {