your personal website on atproto - mirror
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

switch to dynamic env

Florian b0821e40 55eb59f7

+3 -3
+3 -3
src/lib/cards/GIFCard/GiphySearchModal.svelte
··· 1 1 <script lang="ts"> 2 2 import { Button, Input, Modal, Subheading } from '@foxui/core'; 3 - import { PUBLIC_GIPHY_API_TOKEN } from '$env/static/public'; 3 + import { env } from '$env/dynamic/public'; 4 4 import PoweredByGiphy from './PoweredByGiphy.gif'; 5 5 6 6 type GiphyGif = { ··· 46 46 isLoading = true; 47 47 try { 48 48 const url = new URL('https://api.giphy.com/v1/gifs/trending'); 49 - url.searchParams.set('api_key', PUBLIC_GIPHY_API_TOKEN); 49 + url.searchParams.set('api_key', env.PUBLIC_GIPHY_API_TOKEN); 50 50 url.searchParams.set('limit', '24'); 51 51 url.searchParams.set('rating', 'g'); 52 52 ··· 71 71 isLoading = true; 72 72 try { 73 73 const url = new URL('https://api.giphy.com/v1/gifs/search'); 74 - url.searchParams.set('api_key', PUBLIC_GIPHY_API_TOKEN); 74 + url.searchParams.set('api_key', env.PUBLIC_GIPHY_API_TOKEN); 75 75 url.searchParams.set('q', query); 76 76 url.searchParams.set('limit', '24'); 77 77 url.searchParams.set('rating', 'g');