File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import { transformerTwoslash } from '@shikijs/vitepress-twoslash' ;
22import tailwindcss from '@tailwindcss/vite' ;
3- import { defineConfig } from 'vitepress' ;
3+ import { defineConfig , loadEnv } from 'vitepress' ;
44import { fileURLToPath , URL } from 'node:url' ;
55import { getSidebar } from './sidebar' ;
66import {
77 groupIconMdPlugin ,
88 groupIconVitePlugin ,
99} from 'vitepress-plugin-group-icons' ;
1010
11+ // Charger les variables d'environnement
12+ const env = loadEnv ( '' , process . cwd ( ) ) ;
13+
1114// https://vitepress.dev/reference/site-config
1215export default defineConfig ( {
1316 title : 'iExec documentation' ,
@@ -23,6 +26,10 @@ export default defineConfig({
2326 '@' : fileURLToPath ( new URL ( '../src' , import . meta. url ) ) ,
2427 } ,
2528 } ,
29+ // Expose environment variables to the client
30+ define : {
31+ 'import.meta.env.VITE_REOWN_PROJECT_ID' : JSON . stringify ( env . VITE_REOWN_PROJECT_ID ) ,
32+ } ,
2633 } ,
2734 srcDir : './src' ,
2835 markdown : {
You can’t perform that action at this time.
0 commit comments