feat: use api enpoints
CI / CI - Validation Technique (push) Successful in 35s
Publish & Deploy (Versioned) / Build and Push Docker Image (push) Successful in 27s
Publish & Deploy (Versioned) / Deploy via SSH (push) Successful in 8s

This commit is contained in:
2026-05-07 20:55:01 +02:00
parent ca3abb19e1
commit 36745cc9c4
+1 -2
View File
@@ -2,7 +2,6 @@
import { useState } from "react";
import { useSession } from "next-auth/react";
import { env } from "process";
export default function GenerateKeyButton() {
const [loading, setLoading] = useState(false);
@@ -15,7 +14,7 @@ export default function GenerateKeyButton() {
setResult(null);
try {
const res = await fetch(env.NEXT_PUBLIC_API_URL! + "/keys/generate", {
const res = await fetch(process.env.NEXT_PUBLIC_API_URL! + '/keys/generate', {
method: "POST",
headers: {
"Content-Type": "application/json",