🚧 Migrate env variables to use internal SvelteKit system
Some API fetching function rewriting needed as privates cannot be included into public code
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import swell from 'swell-node'
|
||||
import { SWELL_API_TOKEN, SWELL_STORE_ID } from '$env/static/private'
|
||||
|
||||
// Init Swell
|
||||
swell.init(import.meta.env.VITE_SWELL_STORE_ID, import.meta.env.VITE_SWELL_API_TOKEN)
|
||||
swell.init(SWELL_STORE_ID, SWELL_API_TOKEN)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user