[#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
+8
View File
@@ -0,0 +1,8 @@
var SSO_BASE_URL = "https://example.com";
var SSO_CLIENT_ID = "example";
var SSO_SCOPE = "openid name email";
var SSO_REDIRECT_URI = "https://example.com/callback";
var SSO_RESPONSE_TYPE = "code";
var SSO_CODE_CHALLENGE_METHOD = "S256";
var SSO_POST_LOGOUT_REDIRECT = "http://example.com?logout=1";
var CALENDAR_BASE_URL = "https://calendar.example.com";
+1
View File
@@ -31,6 +31,7 @@
rel="stylesheet"
/>
<title>React App</title>
<script src="<%= assetPrefix %>/.env.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>