it was weird. i pressed delete on a subfolder, i think one of the pages.off folders that i was using. and then, suddenly, nvim on windows 7 decided to delete every file in the directory. they weren't shred off the space time continuum, but just marked deleted. i had to pay $80 to get access to a software that could see them. bleh! just seeing all my work, a little over a week, was pretty heart shattering. but i remembered that long ago, a close friend said i could call them whenever i was feeling sad. i finally took them up on that offer. the first time i've ever called someone for emotional support. but it's ok. i got it back. and the site framework is better than ever. i'm gonna commit and push more often. the repo is private anyways.
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
import type { ResolvedMetadata } from "./types/metadata-interface";
|
|
import process from "node:process";
|
|
|
|
export function createDefaultMetadata(): ResolvedMetadata {
|
|
const defaultMetadataBase =
|
|
process.env.NODE_ENV === "production" && process.env.VERCEL_URL
|
|
? new URL(`https://${process.env.VERCEL_URL}`)
|
|
: null;
|
|
|
|
return {
|
|
viewport: "width=device-width, initial-scale=1",
|
|
metadataBase: defaultMetadataBase,
|
|
|
|
// Other values are all null
|
|
title: null,
|
|
description: null,
|
|
applicationName: null,
|
|
authors: null,
|
|
generator: null,
|
|
keywords: null,
|
|
referrer: null,
|
|
themeColor: null,
|
|
colorScheme: null,
|
|
creator: null,
|
|
publisher: null,
|
|
robots: null,
|
|
manifest: null,
|
|
alternates: {
|
|
canonical: null,
|
|
languages: null,
|
|
media: null,
|
|
types: null,
|
|
},
|
|
icons: null,
|
|
openGraph: null,
|
|
twitter: null,
|
|
verification: {},
|
|
appleWebApp: null,
|
|
formatDetection: null,
|
|
itunes: null,
|
|
abstract: null,
|
|
appLinks: null,
|
|
archives: null,
|
|
assets: null,
|
|
bookmarks: null,
|
|
category: null,
|
|
classification: null,
|
|
other: {},
|
|
};
|
|
}
|