-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
43 lines (39 loc) · 1.06 KB
/
astro.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import auth from 'auth-astro';
import node from '@astrojs/node';
import netlify from "@astrojs/netlify";
import vercel from '@astrojs/vercel/serverless';
// https://astro.build/config
export default defineConfig({
integrations: [auth({
injectEndpoints: false
}), starlight({
title: 'Starlight Auth',
components: {
Search: './src/components/starlight/Search.astro'
},
social: {
github: 'https://github.com/TheOtterlord/starlight-auth'
},
sidebar: [{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{
label: 'Example Guide',
link: '/guides/example/'
}]
}, {
label: 'Reference',
autogenerate: {
directory: 'reference'
}
}]
})],
output: 'server',
// Enable the correct adapter for your deployment (note: netlify is untested at the moment)
// adapter: node({ mode: 'middleware' })
// adapter: netlify()
adapter: vercel()
});