mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-06 09:16:53 -06:00
astro-env test
This commit is contained in:
@@ -8,6 +8,8 @@ import mdx from "@astrojs/mdx";
|
|||||||
|
|
||||||
/** @type {import('rehype-pretty-code').Options} */
|
/** @type {import('rehype-pretty-code').Options} */
|
||||||
import react from "@astrojs/react";
|
import react from "@astrojs/react";
|
||||||
|
import env from "astro-env";
|
||||||
|
|
||||||
const prettyOptions = {
|
const prettyOptions = {
|
||||||
theme: "github-dark",
|
theme: "github-dark",
|
||||||
keepBackground: false,
|
keepBackground: false,
|
||||||
@@ -32,7 +34,13 @@ const prettyOptions = {
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://undefined.behavio.rs",
|
site: "https://undefined.behavio.rs",
|
||||||
prefetch: true,
|
prefetch: true,
|
||||||
integrations: [tailwind(), sitemap(), robotsTxt(), mdx(), react()],
|
integrations: [tailwind(), sitemap(), robotsTxt(), mdx(), react(), env({
|
||||||
|
schema: z.object({
|
||||||
|
PUBLIC_VERCEL_GIT_REPO_OWNER: z.string(),
|
||||||
|
PUBLIC_VERCEL_GIT_REPO_SLUG: z.string(),
|
||||||
|
PUBLIC_VERCEL_GIT_COMMIT_SHA: z.string(),
|
||||||
|
}),
|
||||||
|
})],
|
||||||
markdown: {
|
markdown: {
|
||||||
syntaxHighlight: false,
|
syntaxHighlight: false,
|
||||||
rehypePlugins: [[rehypePrettyCode, prettyOptions]]
|
rehypePlugins: [[rehypePrettyCode, prettyOptions]]
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"@types/react": "^18.0.21",
|
"@types/react": "^18.0.21",
|
||||||
"@types/react-dom": "^18.0.6",
|
"@types/react-dom": "^18.0.6",
|
||||||
"astro": "^3.6.3",
|
"astro": "^3.6.3",
|
||||||
|
"astro-env": "^0.0.5",
|
||||||
"astro-robots-txt": "^1.0.0",
|
"astro-robots-txt": "^1.0.0",
|
||||||
"astro-seo": "^0.8.0",
|
"astro-seo": "^0.8.0",
|
||||||
"date-fns": "^2.30.0",
|
"date-fns": "^2.30.0",
|
||||||
|
|||||||
6550
pnpm-lock.yaml
generated
6550
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ import type { Props as SEOProps } from "astro-seo";
|
|||||||
const repository_url = `https://github.com/${
|
const repository_url = `https://github.com/${
|
||||||
import.meta.env.PUBLIC_VERCEL_GIT_REPO_OWNER
|
import.meta.env.PUBLIC_VERCEL_GIT_REPO_OWNER
|
||||||
}/${import.meta.env.PUBLIC_VERCEL_GIT_REPO_SLUG}`;
|
}/${import.meta.env.PUBLIC_VERCEL_GIT_REPO_SLUG}`;
|
||||||
const build_revision = import.meta.env.PUBLIC_VERCEL_GIT_COMMIT_SHA ?? "unknown";
|
const build_revision = import.meta.env.PUBLIC_VERCEL_GIT_COMMIT_SHA;
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user