」 feat: added env variable to front

This commit is contained in:
2025-10-16 13:25:36 +02:00
parent d80beff543
commit 2cafd7afac
4 changed files with 10 additions and 4 deletions

View File

@ -10,7 +10,7 @@ export async function authUserCreate(username, fastify) {
};
const cookie = fastify.jwt.sign({ user: "admin" });
const url = process.env.USER_URL || "http://localhost:3002/"
const url = process.env.USER_URL + "/" || "http://localhost:3002/"
await axios.post(
url + "users/" + username,