mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
Replace env values with SITE config object
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
---
|
||||
import { SITE } from "src/config";
|
||||
import "../styles/base.css";
|
||||
|
||||
export interface Props {
|
||||
@@ -9,10 +10,10 @@ export interface Props {
|
||||
}
|
||||
|
||||
const {
|
||||
title = import.meta.env.PUBLIC_SITE_TITLE,
|
||||
author = import.meta.env.PUBLIC_AUTHOR,
|
||||
description = import.meta.env.PUBLIC_SITE_DESC,
|
||||
ogImage = import.meta.env.PUBLIC_OG_IMAGE,
|
||||
title = SITE.title,
|
||||
author = SITE.author,
|
||||
description = SITE.desc,
|
||||
ogImage = SITE.ogImage,
|
||||
} = Astro.props;
|
||||
|
||||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||
|
||||
Reference in New Issue
Block a user