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>
|
||||
<VpsResources vm={vm} />
|
||||
</div>
|
||||
{(actions ?? true) && <div className="flex gap-2 items-center">
|
||||
<div className="flex gap-2 items-center">
|
||||
{isExpired && (
|
||||
<>
|
||||
<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>
|
||||
</>
|
||||
)}
|
||||
{!isExpired && <VmActions vm={vm} />}
|
||||
</div>}
|
||||
{!isExpired && (actions ?? true) && <VmActions vm={vm} />}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -12,8 +12,7 @@ export const GB = KB * 1000;
|
||||
export const TB = GB * 1000;
|
||||
export const PB = TB * 1000;
|
||||
|
||||
//export const ApiUrl = "http://localhost:8000";
|
||||
export const ApiUrl = "https://api.lnvps.net";
|
||||
export const ApiUrl = import.meta.env.VITE_API_URL;
|
||||
|
||||
export const NostrProfile = new NostrLink(
|
||||
NostrPrefix.Profile,
|
||||
|
Loading…
x
Reference in New Issue
Block a user