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

move documentation of environment variables into lib/env.ts

This commit is contained in:
2025-04-09 14:48:40 -04:00
parent eb92e54fd6
commit cf6c2157f8
11 changed files with 226 additions and 169 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ export const POSTS_DIR = "notes";
// path to an image used in various places to represent the site, relative to project root
// IMPORTANT: must be included in next.config.ts under "outputFileTracingIncludes"
export const AVATAR_PATH = "app/avatar.jpg";
export const AVATAR_PATH = "app/selfie.jpg";
// maximum width of content wrapper (e.g. for images) in pixels
export const MAX_WIDTH = 865;
-47
View File
@@ -1,47 +0,0 @@
import * as config from ".";
import { BASE_URL } from "./constants";
import type { Metadata } from "next";
const defaultMetadata: Metadata = {
metadataBase: new URL(BASE_URL),
title: {
template: `%s ${config.siteName}`,
default: `${config.siteName} ${config.shortDescription}`,
},
description: config.longDescription,
openGraph: {
siteName: config.siteName,
title: {
template: "%s",
default: `${config.siteName} ${config.shortDescription}`,
},
url: "/",
locale: config.siteLocale?.replace("-", "_"),
type: "website",
},
twitter: {
creator: `@${config.authorSocial?.twitter}`,
},
alternates: {
canonical: "/",
types: {
"application/rss+xml": [
{
title: `${config.siteName} (RSS)`,
url: "/feed.xml",
},
],
"application/atom+xml": [
{
title: `${config.siteName} (Atom)`,
url: "/feed.atom",
},
],
},
},
other: {
humans: "/humans.txt",
},
};
export default defaultMetadata;