[#24] changed .env to be a public js file script loaded by index.html
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user