1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-15 19:54:27 -04:00

clean up remaining NEXT_PUBLIC_ environment variables

This commit is contained in:
2025-04-13 16:28:00 -04:00
parent f08aa16862
commit b60fbcc15c
21 changed files with 137 additions and 117 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import { env } from "../env";
import * as config from "../config";
import { BASE_URL, SITE_LOCALE } from "../config/constants";
import type { Metadata } from "next";
export const defaultMetadata: Metadata = {
metadataBase: new URL(BASE_URL),
metadataBase: env.NEXT_PUBLIC_BASE_URL ? new URL(env.NEXT_PUBLIC_BASE_URL) : undefined,
title: {
template: `%s ${config.siteName}`,
default: `${config.siteName} ${config.tagline}`,
@@ -16,7 +16,7 @@ export const defaultMetadata: Metadata = {
default: `${config.siteName} ${config.tagline}`,
},
url: "/",
locale: SITE_LOCALE?.replace("-", "_"),
locale: env.NEXT_PUBLIC_SITE_LOCALE.replace("-", "_"),
type: "website",
},
twitter: {