Skip to content

Commit

Permalink
fix: incorrect secret access
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 28, 2024
1 parent 60e9f1b commit 588b1e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineAction, ActionError } from 'astro:actions';
import { z } from 'astro:schema';
const { env } = Astro.locals.runtime;

export const server = {
submitWaitlistEmail: defineAction({
Expand All @@ -12,7 +13,7 @@ export const server = {
headers: {
accept: 'application/json',
'content-type': 'application/json',
'api-key': import.meta.env.BREVO_API_KEY,
'api-key': env.BREVO_API_KEY,
},
body: JSON.stringify({
email,
Expand Down

0 comments on commit 588b1e2

Please sign in to comment.