Skip to content

Commit

Permalink
hotfix cf env
Browse files Browse the repository at this point in the history
  • Loading branch information
bwyx committed Feb 26, 2023
1 parent ae5b726 commit 6de11bf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ export default defineConfig({
adapter: cloudflare({ mode: 'advanced' }),
integrations: [react(), mdx()],
vite: {
plugins: [vanillaExtractPlugin()]
plugins: [vanillaExtractPlugin()],
define: {
'process.env.SPOTIFY_CLIENT_ID': JSON.stringify(
process.env.SPOTIFY_CLIENT_ID
),
'process.env.SPOTIFY_CLIENT_SECRET': JSON.stringify(
process.env.SPOTIFY_CLIENT_SECRET
),
'process.env.SPOTIFY_REFRESH_TOKEN': JSON.stringify(
process.env.SPOTIFY_REFRESH_TOKEN
)
}
}
})

0 comments on commit 6de11bf

Please sign in to comment.