mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Adds a validation schema for the application's environment variables using the Zod library. The parsed environment variables are then exported as constants that can be imported throughout the application, replacing the direct use of process.env.
7 lines
153 B
TypeScript
7 lines
153 B
TypeScript
import SparkPost from 'sparkpost';
|
|
import { SPARKPOST_API_KEY } from '../env';
|
|
|
|
const client = new SparkPost(SPARKPOST_API_KEY);
|
|
|
|
export default client;
|