Fetch .env variables in .vue files
Hello everyone ,
I am trying to fetch an .env variable in "modules/checkout/components/VsfPaymentProvider.vue"
but "process.env.SOME_KEY" is not working for me , which is the default way to access env in .vue files .
S
skirianov•326d ago
Hi 👋
This is a Nuxt.js thing and I couldn’t find anything in their docs, but take a look at this answer it may help https://stackoverflow.com/a/67705541
Stack Overflow
How to use .env variables in Nuxt 2 or 3?
I have .env file in the project root, and in my nuxt config I am using variables to configure ReCaptcha like this:
import dotenv from 'dotenv'
dotenv.config()
export default {
modules: [
...
A
ajaykrmahato•326d ago
Thanks , I will have a look into this .
5.2KMembers
View on DiscordWant results from more Discord servers?
More PostsServer side renderI am using v1 verison of this library, but I found that SfFooter componet does not get rendered on tCustom Integration Boilerplate - Where is functionality?Hi,
we're implementing a complete custom integration with backend, api, theme etc 🙂
i'm curios hoSfComponentSelect dosen't hold selectionHi there,
i have problem with SfComponentSelect component
```
<SfComponentSelect
SFUI 2.x with Magento 2How can i use SFUI 2.x with Magento 2.
Want to test SFUI 2.x on my local machine to see its performaVSF2 + OpenMageGreetings 🙂
I have a question regarding the integration of Vue-Storefront 2 with Magento 1.9 (OpenHi AllI am trying to implement Payment gateway in vsf ,But I cannot find the yarn or npm package mentione