mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: centralize API URL and internal API key management for improved maintainability
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { env } from '$env/dynamic/private';
|
||||
|
||||
export const apiUrl = env.VITE_API_URL ?? 'http://localhost:5050';
|
||||
export const viewInternalApiKey =
|
||||
env.NODE_ENV === 'development'
|
||||
? 'cccdd42d9f2f648493e402f1da7c855ea798ad510e6bb9ea712dd7bed838e58'
|
||||
: env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? '';
|
||||
Reference in New Issue
Block a user