File tree Expand file tree Collapse file tree 4 files changed +420
-39
lines changed Expand file tree Collapse file tree 4 files changed +420
-39
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'astro/config' ;
2
2
import starlight from '@astrojs/starlight' ;
3
3
4
+ import vercel from "@astrojs/vercel/serverless" ;
5
+
4
6
// https://astro.build/config
5
7
export default defineConfig ( {
6
- integrations : [
7
- starlight ( {
8
- title : 'Pic Impact' ,
9
- defaultLocale : 'root' ,
10
- locales : {
11
- root : {
12
- label : '简体中文' ,
13
- lang : 'zh-CN' ,
14
- } ,
15
- } ,
16
- social : {
17
- github : 'https://github.com/besscroft/PicImpact' ,
18
- } ,
19
- sidebar : [
20
- {
21
- label : '从这里开始' ,
22
- autogenerate : { directory : 'quick' } ,
23
- } ,
24
- {
25
- label : '指南' ,
26
- autogenerate : { directory : 'guides' } ,
27
- } ,
28
- {
29
- label : '参考' ,
30
- autogenerate : { directory : 'reference' } ,
31
- } ,
32
- ] ,
33
- } ) ,
34
- ] ,
35
- } ) ;
8
+ integrations : [ starlight ( {
9
+ title : 'Pic Impact' ,
10
+ defaultLocale : 'root' ,
11
+ locales : {
12
+ root : {
13
+ label : '简体中文' ,
14
+ lang : 'zh-CN'
15
+ }
16
+ } ,
17
+ social : {
18
+ github : 'https://github.com/besscroft/PicImpact'
19
+ } ,
20
+ sidebar : [ {
21
+ label : '从这里开始' ,
22
+ autogenerate : {
23
+ directory : 'quick'
24
+ }
25
+ } , {
26
+ label : '指南' ,
27
+ autogenerate : {
28
+ directory : 'guides'
29
+ }
30
+ } , {
31
+ label : '参考' ,
32
+ autogenerate : {
33
+ directory : 'reference'
34
+ }
35
+ } ]
36
+ } ) ] ,
37
+ output : "server" ,
38
+ adapter : vercel ( )
39
+ } ) ;
Original file line number Diff line number Diff line change 11
11
"astro" : " astro"
12
12
},
13
13
"dependencies" : {
14
+ "@astrojs/check" : " ^0.5.10" ,
14
15
"@astrojs/starlight" : " ^0.21.5" ,
16
+ "@astrojs/vercel" : " ^7.5.2" ,
15
17
"astro" : " ^4.3.5" ,
16
18
"sharp" : " ^0.32.5" ,
17
- "@astrojs/check" : " ^0.5.10" ,
18
19
"typescript" : " ^5.4.4"
19
20
}
20
21
}
You can’t perform that action at this time.
0 commit comments