planetscale / beam

A simple message board for your organization or project
https://planetscale.com/blog/introducing-beam
MIT License
2.06k stars 141 forks source link

Make NEXT_APP_URL an Optional ENV variable #59

Closed IAmLuisJ closed 2 years ago

IAmLuisJ commented 2 years ago

This makes the NEXT_APP_URL env variable optional so you can deploy without errors if slack integration is turned off, but leaves the URL Type safety in place.

Another option would be to use the slackParser function to validate, but since it only validates the string you would lose URL Type safety which ensures the env var is a url with a protocol and hostname.

Resolves #57

vercel[bot] commented 2 years ago

@IAmLuisJ is attempting to deploy a commit to the PlanetScale Team on Vercel.

A member of the Team first needs to authorize it.