Skip to content

Commit 2258384

Browse files
Merge branch 'louisescher:master' into main
2 parents f73da76 + 6f5a46d commit 2258384

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/content/posts/getting-started.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,26 @@ info: # A TOML-like list of information about the project
242242

243243
The `src/content/other/` directory is home to all MDX content which does not need it's own category. For example, you'll find an `about.mdx` file in here, which is responsible for the "About me" section on the homepage!
244244

245+
## Deploying
246+
247+
Spectre uses the [`node`](https://docs.astro.build/en/guides/integrations-guide/node/) adapter by default. If you want to deploy to Netlify or Vercel, you need their respective adapters:
248+
- [`@astrojs/netlify`](https://docs.astro.build/en/guides/integrations-guide/netlify/)
249+
- [`@astrojs/vercel`](https://docs.astro.build/en/guides/integrations-guide/vercel/)
250+
251+
When deploying to GitHub Pages, make sure to remove the adapter from the `astro.config.ts` file altogether:
252+
253+
```ts del={4-6} title="astro.config.ts"
254+
// ...
255+
export default defineConfig({
256+
// ...
257+
adapter: node({
258+
mode: 'standalone'
259+
})
260+
});
261+
```
262+
263+
After doing so, you can follow the [official guide](https://docs.astro.build/en/guides/deploy/github/) to deploy your site.
264+
245265
## Modifying the theme
246266

247267
As with all themes, you might wish to modify it. In terms of content, you should know where you can do that! If you want to modify the primary color for example, you can do so in the `src/styles/globals.css` file:

0 commit comments

Comments
 (0)