Updated Astro setup docs: env import

This commit is contained in:
Matt Aitken
2023-09-14 11:14:35 +01:00
parent dc7f335beb
commit dbd094216d
+2 -2
View File
@@ -60,8 +60,8 @@ To set up the Trigger Client for your project, follow these steps:
export const client = new TriggerClient({
id: "my-app",
apiKey: process.env.TRIGGER_API_KEY,
apiUrl: process.env.TRIGGER_API_URL,
apiKey: import.meta.env.TRIGGER_API_KEY,
apiUrl: import.meta.env.TRIGGER_API_URL,
});
```