[WIP] add support for VITE_STABILITY_API_KEY#5
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Copilot in the getApiKey do we need STABILITY_API_KEY if our key is named VITE_STABILITY_API_KEY? We won't have STABILITY_API_KEY ever. const getApiKey = (): { value: string | undefined; fromEnv: boolean } => { if (envKey) { // Fallback to localStorage |
Co-authored-by: williamli <179761+williamli@users.noreply.github.com>
... You're absolutely right! The code you're referencing appears to be from an earlier version. In my commit c77c85d, I already updated the |
Implementation Summary
Successfully implemented support for
VITE_STABILITY_API_KEYenvironment variable with the following behavior:When VITE_STABILITY_API_KEY is set:
When VITE_STABILITY_API_KEY is not set:
Key Changes Made:
getApiKey()function to only checkVITE_STABILITY_API_KEY(removedSTABILITY_API_KEYfallback)Screenshot:
The implementation is minimal and surgical - only 2 small changes were needed since most functionality was already present.
Fixes #4.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.