Skip to content

Commit

Permalink
Add process.env.* to vite define secret
Browse files Browse the repository at this point in the history
  • Loading branch information
sngmn451 committed Jul 24, 2024
1 parent b8f7a73 commit 99c4ab8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,12 @@ export default defineConfig({
],
},
},
define: {
"process.env.DB_URL": process.env.DB_URL,
"process.env.DB_AUTHTOKEN": process.env.DB_AUTHTOKEN,
"process.env.OPENAI_KEY": process.env.OPENAI_KEY,
"process.env.OPENAI_PROJECT_ID": process.env.OPENAI_PROJECT_ID,
"process.env.OPENAI_ORG_ID": process.env.OPENAI_ORG_ID,
},
},
})

0 comments on commit 99c4ab8

Please sign in to comment.