[#24] changed .env to be a public js file script loaded by index.html

This commit is contained in:
Camille Moussu
2025-07-08 11:40:42 +02:00
parent 256d3a32c0
commit 4e32e351c4
7 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
export default async function getOpenPaasUserId(opaque_token: string) {
const response = await fetch(
`${process.env.PUBLIC_CALENDAR_BASE_URL}/api/user`,
`${(window as any).CALENDAR_BASE_URL}/api/user`,
{
headers: {
Authorization: `Bearer ${opaque_token}`,