Skip to content

Commit

Permalink
refactor: replace astro.config site value with SITE.website
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing committed Mar 16, 2023
1 parent 0c6d0ba commit 4fe5084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions src/content/blog/how-to-configure-astropaper-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fe5084

Please sign in to comment.