fix: #72 replace SITE.website with a URL in astro.config site value

Using SITE.website in astro.config.mjs causes the problem . Thus, change back to the original url string in site value of .

Closes: #72
This commit is contained in:
satnaing
2023-07-20 16:26:16 +06:30
committed by Sat Naing
parent 3187933dbe
commit 26ecd173dd
2 changed files with 12 additions and 2 deletions
+1 -2
View File
@@ -4,11 +4,10 @@ import react from "@astrojs/react";
import remarkToc from "remark-toc"; import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse"; import remarkCollapse from "remark-collapse";
import sitemap from "@astrojs/sitemap"; import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: SITE.website, site: "https://astro-paper.pages.dev/", // replace this with your deployed domain
integrations: [ integrations: [
tailwind({ tailwind({
config: { config: {
@@ -35,6 +35,17 @@ export const SITE = {
}; };
``` ```
Then, replace site property of `astro.config.mjs` file with your own deployed domain. _(You can also omit this step if you don't have deployed domain yet or you are still in development mode)_
```js
// file: astro.config.mjs
export default defineConfig({
site: "https://astro-paper.pages.dev/", // replace this with your deployed domain
integrations: [...],
...
)}
```
Here are SITE configuration options Here are SITE configuration options
| Options | Description | | Options | Description |