diff --git a/.env.example b/.env.example index 0e1b3d41..fec9abfa 100644 --- a/.env.example +++ b/.env.example @@ -8,9 +8,6 @@ NX_POLYGON_API_KEY= # If using free ngrok account for webhooks NGROK_AUTH_TOKEN= -POSTMARK_SMTP_PASS= -NX_SESSION_SECRET= - # Generate a new secret using openssl rand -base64 32 NEXTAUTH_SECRET= NEXTAUTH_URL=http://localhost:4200 @@ -19,10 +16,14 @@ NX_NEXTAUTH_URL=http://localhost:4200 NX_PLAID_SECRET= NX_FINICITY_APP_KEY= NX_FINICITY_PARTNER_SECRET= -NX_CONVERTKIT_SECRET= # Teller API keys (https://teller.io) NX_TELLER_SIGNING_SECRET= NX_TELLER_APP_ID= NEXT_PUBLIC_ZAPIER_FEEDBACK_HOOK_URL= + +# Email credentials +NX_POSTMARK_FROM_ADDRESS=account@example.com +NX_POSTMARK_REPLY_TO_ADDRESS=support@example.com +NX_POSTMARK_API_TOKEN= diff --git a/README.md b/README.md index e8425d4e..85aeb01d 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ cp .env.example .env Then, create a new secret using `openssl rand -base64 32` and populate `NEXTAUTH_SECRET` in your `.env` file with it. +To enable transactional emails, you'll need to create a [Postmark](https://postmarkapp.com/) account and add your API key to your `.env` file (`NX_POSTMARK_API_TOKEN`). You can also set the from and reply-to email addresses (`NX_POSTMARK_FROM_ADDRESS` and `NX_POSTMARK_REPLY_TO_ADDRESS`). If you want to run the app without email, you can set `NX_POSTMARK_API_TOKEN` to a dummy value. + Then run the following yarn commands: ``` diff --git a/apps/server/src/env.ts b/apps/server/src/env.ts index 33d85133..e69f5f4d 100644 --- a/apps/server/src/env.ts +++ b/apps/server/src/env.ts @@ -29,7 +29,6 @@ const envSchema = z.object({ NX_DATABASE_URL: z.string(), NX_DATABASE_SECRET: z.string(), - NX_SESSION_SECRET: z.string(), NX_NGROK_URL: z.string().default('http://localhost:4551'),