Skip to content

Commit 4fe5084

Browse files
committed
refactor: replace astro.config site value with SITE.website
1 parent 0c6d0ba commit 4fe5084

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import react from "@astrojs/react";
44
import remarkToc from "remark-toc";
55
import remarkCollapse from "remark-collapse";
66
import sitemap from "@astrojs/sitemap";
7+
import { SITE } from "./src/config";
78

89
// https://astro.build/config
910
export default defineConfig({
10-
site: "https://astro-paper.pages.dev/",
11+
site: SITE.website,
1112
integrations: [
1213
tailwind({
1314
config: {

src/content/blog/how-to-configure-astropaper-theme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ AstroPaper is a highly customizable Astro blog theme. With AstroPaper, you can c
1818

1919
## Configuring SITE
2020

21-
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)_
21+
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.
2222

23-
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.
23+
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.
2424

2525
```js
2626
// file: src/config.ts

0 commit comments

Comments
 (0)