From 52b422619ac16da312e0d87d4a23e21c6b7a8c7e Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Sun, 8 Dec 2024 23:24:11 +0100 Subject: [PATCH] chore: update env variable --- apps/romainlanz.com/.env.example | 4 +++- packages/rpc/src/client.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/romainlanz.com/.env.example b/apps/romainlanz.com/.env.example index 93f5d1e..ae5ee5d 100644 --- a/apps/romainlanz.com/.env.example +++ b/apps/romainlanz.com/.env.example @@ -6,7 +6,9 @@ NODE_ENV=development # App LOG_LEVEL=info -APP_KEY=xlahxkUGTtKMhdB39YDcOiAh-RiHX4nx +APP_KEY= +APP_URL=http://romainlanz.localhost:3333 +VITE_APP_URL=$APP_URL # Session SESSION_DRIVER=cookie diff --git a/packages/rpc/src/client.ts b/packages/rpc/src/client.ts index 980a1df..d499ece 100644 --- a/packages/rpc/src/client.ts +++ b/packages/rpc/src/client.ts @@ -3,5 +3,5 @@ import { api } from "@rlanz/site/api"; export const client = createTuyau({ api, - baseUrl: globalThis.RomainLanz.appUrl, + baseUrl: import.meta.env.VITE_APP_URL, });