mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-24 12:44:59 +02:00
automatically set the base url
This commit is contained in:
parent
29777da430
commit
0838679120
4 changed files with 40 additions and 38 deletions
|
@ -44,7 +44,7 @@ const environmentSchema = z.object({
|
|||
EMAIL_SMTP_USER: z.string().optional(),
|
||||
EMAIL_SMTP_PASS: z.string().optional(),
|
||||
EMAIL_NOREPLY: z.string().email().optional(),
|
||||
SITE_DOMAIN: z
|
||||
BASE_URL: z
|
||||
.string()
|
||||
.optional()
|
||||
.transform((val) => {
|
||||
|
@ -73,7 +73,7 @@ const environment = {
|
|||
EMAIL_SMTP_USER: process.env.EMAIL_SMTP_USER as string,
|
||||
EMAIL_SMTP_PASS: process.env.EMAIL_SMTP_PASS as string,
|
||||
EMAIL_NOREPLY: process.env.EMAIL_NOREPLY as string,
|
||||
SITE_DOMAIN: process.env.NEXT_PUBLIC_SITE_DOMAIN as string,
|
||||
BASE_URL: process.env.BASE_URL as string,
|
||||
};
|
||||
|
||||
const parsedConfig = environmentSchema.safeParse(environment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue