fix: expired link
This commit is contained in:
parent
e4f6863e21
commit
12c3ddc31d
1
.env.development
Normal file
1
.env.development
Normal file
@ -0,0 +1 @@
|
|||||||
|
VITE_API_URL="http://localhost:8000"
|
@ -26,7 +26,7 @@ export default function VpsInstanceRow({ vm, actions }: { vm: VmInstance, action
|
|||||||
</div>
|
</div>
|
||||||
<VpsResources vm={vm} />
|
<VpsResources vm={vm} />
|
||||||
</div>
|
</div>
|
||||||
{(actions ?? true) && <div className="flex gap-2 items-center">
|
<div className="flex gap-2 items-center">
|
||||||
{isExpired && (
|
{isExpired && (
|
||||||
<>
|
<>
|
||||||
<Link to="/vm/renew" className="text-red-500 text-sm" state={vm}>
|
<Link to="/vm/renew" className="text-red-500 text-sm" state={vm}>
|
||||||
@ -34,8 +34,8 @@ export default function VpsInstanceRow({ vm, actions }: { vm: VmInstance, action
|
|||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{!isExpired && <VmActions vm={vm} />}
|
{!isExpired && (actions ?? true) && <VmActions vm={vm} />}
|
||||||
</div>}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,7 @@ export const GB = KB * 1000;
|
|||||||
export const TB = GB * 1000;
|
export const TB = GB * 1000;
|
||||||
export const PB = TB * 1000;
|
export const PB = TB * 1000;
|
||||||
|
|
||||||
//export const ApiUrl = "http://localhost:8000";
|
export const ApiUrl = import.meta.env.VITE_API_URL;
|
||||||
export const ApiUrl = "https://api.lnvps.net";
|
|
||||||
|
|
||||||
export const NostrProfile = new NostrLink(
|
export const NostrProfile = new NostrLink(
|
||||||
NostrPrefix.Profile,
|
NostrPrefix.Profile,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user