clean up
This commit is contained in:
@@ -3,15 +3,14 @@ import { getEnv } from './env-loader.js';
|
|||||||
|
|
||||||
export function getPublicVapidKey() {
|
export function getPublicVapidKey() {
|
||||||
// Get the VAPID key from environment variables through the env-loader
|
// Get the VAPID key from environment variables through the env-loader
|
||||||
return getEnv('PUBLIC_VAPID_KEY', 'BKfRJXjSQmAJ452gLwlK_8scGrW6qMU1mBRp39ONtcQHkSsQgmLAaODIyGbgHyRpnDEv3HfXV1oGh3SC0fHxY0E');
|
return getEnv('PUBLIC_VAPID_KEY');
|
||||||
}
|
}
|
||||||
|
|
||||||
// The VAPID key should not be exposed directly in the source code
|
// The VAPID key should not be exposed directly in the source code
|
||||||
// Use the getter function instead: getPublicVapidKey()
|
// Use the getter function instead: getPublicVapidKey()
|
||||||
// export const PUBLIC_VAPID_KEY = 'BKfRJXjSQmAJ452gLwlK_8scGrW6qMU1mBRp39ONtcQHkSsQgmLAaODIyGbgHyRpnDEv3HfXV1oGh3SC0fHxY0E';
|
|
||||||
|
|
||||||
// Get backend URL from environment variables
|
// Get backend URL from environment variables
|
||||||
export const BACKEND_URL = getEnv('BACKEND_URL', 'https://webpush.virtonline.eu');
|
export const BACKEND_URL = getEnv('BACKEND_URL');
|
||||||
export const FLIC_BUTTON_ID = 'game-button'; // Example ID, might need configuration
|
export const FLIC_BUTTON_ID = 'game-button'; // Example ID, might need configuration
|
||||||
export const LOCAL_STORAGE_KEY = 'gameTimerData';
|
export const LOCAL_STORAGE_KEY = 'gameTimerData';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user