mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 14:45:32 -04:00
prettier dynamic opengraph images 💅
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
/** Path to directory with .mdx files, relative to project root. */
|
||||
export const POSTS_DIR = "notes";
|
||||
|
||||
/**
|
||||
* Path to an image used in various places to represent the site, relative to project root. This path must be included
|
||||
* in [next.config.ts](../../next.config.ts) under `outputFileTracingIncludes`.
|
||||
*/
|
||||
export const AVATAR_PATH = "app/avatar.jpg";
|
||||
|
||||
/** Maximum width of content wrapper (e.g. for images) in pixels. */
|
||||
export const MAX_WIDTH = 865;
|
||||
|
@@ -112,16 +112,16 @@ export const env = createEnv({
|
||||
*
|
||||
* @see https://developers.cloudflare.com/turnstile/troubleshooting/testing/
|
||||
*/
|
||||
NEXT_PUBLIC_TURNSTILE_SITE_KEY: v.optional(v.string(), "XXXX.DUMMY.TOKEN.XXXX"),
|
||||
NEXT_PUBLIC_TURNSTILE_SITE_KEY: v.optional(v.string(), "1x00000000000000000000AA"),
|
||||
},
|
||||
experimental__runtimeEnv: {
|
||||
NEXT_PUBLIC_BASE_URL:
|
||||
process.env.NEXT_PUBLIC_BASE_URL ||
|
||||
// Vercel: https://vercel.com/docs/environment-variables/system-environment-variables
|
||||
(process.env.VERCEL
|
||||
? process.env.VERCEL_ENV === "production" && process.env.VERCEL_PROJECT_PRODUCTION_URL
|
||||
? process.env.VERCEL_ENV === "production"
|
||||
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
|
||||
: process.env.VERCEL_ENV === "preview" && process.env.VERCEL_BRANCH_URL
|
||||
: process.env.VERCEL_ENV === "preview"
|
||||
? `https://${process.env.VERCEL_BRANCH_URL}`
|
||||
: process.env.VERCEL_URL
|
||||
? `https://${process.env.VERCEL_URL}`
|
||||
@@ -129,7 +129,7 @@ export const env = createEnv({
|
||||
: undefined) ||
|
||||
// Netlify: https://docs.netlify.com/configure-builds/environment-variables/#read-only-variables
|
||||
(process.env.NETLIFY
|
||||
? process.env.CONTEXT === "production" && process.env.URL
|
||||
? process.env.CONTEXT === "production"
|
||||
? `${process.env.URL}`
|
||||
: process.env.DEPLOY_PRIME_URL
|
||||
? `${process.env.DEPLOY_PRIME_URL}`
|
||||
|
@@ -97,7 +97,7 @@ Promise<any> => {
|
||||
) as FrontMatter[];
|
||||
}
|
||||
|
||||
throw new Error(`getFrontMatter() called with invalid argument.`);
|
||||
throw new Error("getFrontMatter() called with invalid argument.");
|
||||
};
|
||||
|
||||
/** Returns the content of a post with very limited processing to include in RSS feeds */
|
||||
|
Reference in New Issue
Block a user