Next.js Discord

Discord Forum

How can I access env variables in vercel.json inside a sveltekit app.

Unanswered
Black Turnstone posted this in #help-forum
Open in Discord
Black TurnstoneOP
I need a way of accessing env variables inside a vercel.json file. Specifically for rewrites. In next js you can do that inside a next.config.js file. Is there something similar but for SvelteKit?

OR I need a way of using a different vercel.json file depending on the environment (preview or development)

Thanks!

0 Replies