diff --git a/astro.config.mjs b/astro.config.mjs index 717491c..13b1e0c 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,10 +4,11 @@ import react from "@astrojs/react"; import remarkToc from "remark-toc"; import remarkCollapse from "remark-collapse"; import sitemap from "@astrojs/sitemap"; +import { SITE } from "./src/config"; // https://astro.build/config export default defineConfig({ - site: "https://astro-paper.pages.dev/", + site: SITE.website, integrations: [ tailwind({ config: { diff --git a/src/content/blog/how-to-configure-astropaper-theme.md b/src/content/blog/how-to-configure-astropaper-theme.md index abb3bd9..2ce338f 100644 --- a/src/content/blog/how-to-configure-astropaper-theme.md +++ b/src/content/blog/how-to-configure-astropaper-theme.md @@ -18,9 +18,9 @@ AstroPaper is a highly customizable Astro blog theme. With AstroPaper, you can c ## Configuring SITE -First of all, replace site property of _`astro.config.mjs` file with your own deployed domain. (You can omit this step if you don't have deployed domain yet or you are still in development mode)_ +The important configurations lies in `src/config.ts` file. Within that file, you'll see the `SITE` object where you can specify your website's main configurations. -Another important configurations lies in `src/config.ts` file. Within that file, you'll see the `SITE` object where you can specify your website's main configurations. +During deveopment, it's okay to leave `SITE.website` empty. But in production mode, you should specify your deployed url in `SITE.website` option since this will be used for canonical URL, social card URL etc.. which are important for SEO. ```js // file: src/config.ts