mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
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:
+1
-2
@@ -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 |
|
||||||
|
|||||||
Reference in New Issue
Block a user