Louie
Louie
Explore posts from servers
NNuxt
Created by Louie on 11/2/2024 in #❓・help
How to access environment variables in JS files?
Hi, I'm wanting to create a service layer which fetches data from an API endpoint. Inside this file I want to get my API key and base url from my .env to use in the fetch request. However, I can't seem to access it? What's best practice for getting my env variables outside of the Nuxt context since I can't hook into the runtimeConfig? Thank you!!
5 replies
CDCloudflare Developers
Created by Louie on 11/1/2023 in #general-help
Can't seem to find Builds & deployments and in my Cloudflare Pages settings
No description
6 replies