Skip to content

Commit

Permalink
fix: #72 replace SITE.website with a URL in astro.config site value
Browse files Browse the repository at this point in the history
Using SITE.website in astro.config.mjs causes the problem . Thus, change back to the original url string in site value of .

Closes: #72
  • Loading branch information
satnaing committed Jul 20, 2023
1 parent 3187933 commit 26ecd17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ 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: SITE.website,
site: "https://astro-paper.pages.dev/", // replace this with your deployed domain
integrations: [
tailwind({
config: {
Expand Down
11 changes: 11 additions & 0 deletions src/content/blog/how-to-configure-astropaper-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
| Options | Description |
Expand Down

0 comments on commit 26ecd17

Please sign in to comment.