wevm/vocs

Loading environment variables to mdx files

kyhyco opened this issue · 1 comments

Hello!

Is it possible to load a .env file into vocs?

I read up on how to load env variables on vite:

None of them are working though.

Long day + new to vite

Setting env var to VITE_KEY_NAME and fetching like this works fine:

const VITE_KEY_NAME = import.meta.env.VITE_KEY_NAME;