Skip to content

Commit

Permalink
Make SITE_URL optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcginnes committed Jan 31, 2024
1 parent fa4c4e6 commit a1f1c98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const metadata = {
title: "Kris McGinnes Portfolio",
description:
"I most enjoy building software at the intersection of design and engineering - things that look good but are also built well under the hood.",
metadataBase: new URL(env.SITE_URL),
metadataBase: env.SITE_URL && new URL(env.SITE_URL),
}

export default function RootLayout({
Expand Down
2 changes: 1 addition & 1 deletion src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const env = createEnv({
*/
server: {
NODE_ENV: z.enum(["development", "test", "production"]),
SITE_URL: z.string().url(),
SITE_URL: z.string().url().optional(),
},

/**
Expand Down

0 comments on commit a1f1c98

Please sign in to comment.