@@ -29,18 +29,22 @@ import { remarkSummary } from "./src/plugins/remark-summary";
29
29
// transformerNotationHighlight,
30
30
// } from "shikiji-transformers";
31
31
import db from "@astrojs/db" ;
32
+ import vercel from "@astrojs/vercel/serverless" ;
32
33
import expressiveCode from "astro-expressive-code" ;
34
+ import "@astrojs/db/virtual.d.ts" ;
33
35
const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
34
36
35
37
/**
36
38
* @type {import('astro').AstroConfig }
37
39
*/
38
40
41
+ // https://astro.build/config
39
42
export default defineConfig ( {
40
43
output : "server" ,
41
- adapter : node ( {
42
- mode : "standalone" ,
43
- } ) ,
44
+ adapter : vercel ( ) ,
45
+ // adapter: node({
46
+ // mode: "standalone",
47
+ // }),
44
48
site : "https://www.railsdev.dev" ,
45
49
integrations : [
46
50
customImageResizer ,
@@ -62,44 +66,36 @@ export default defineConfig({
62
66
remarkPlugins : [
63
67
// @ts -expect-error - This is a valid plugin that returns a Transformer,
64
68
// but the type definition is not compatible with the expected [unified.Plugin, string[]] type.
65
- [
66
- remarkShakuCodeAnnotate ,
67
- {
68
- fallbackToShiki : true ,
69
- theme : "material-theme-darker" ,
70
- langs : [
71
- "bash" ,
72
- "fish" ,
73
- "go" ,
74
- "html" ,
75
- "javascript" ,
76
- "json" ,
77
- "jsonc" ,
78
- "jsx" ,
79
- "lua" ,
80
- "rb" ,
81
- "ruby" ,
82
- "sh" ,
83
- "toml" ,
84
- "ts" ,
85
- "ts" ,
86
- "tsx" ,
87
- "typescript" ,
88
- "vim" ,
89
- "yaml" ,
90
- "yml" ,
91
- ] ,
92
- } ,
93
- ] ,
94
- ] ,
95
- rehypePlugins : [
96
- [
97
- rehypeAutolinkHeadings ,
98
- {
99
- behavior : "append" ,
100
- } ,
101
- ] ,
69
+ [ remarkShakuCodeAnnotate , {
70
+ fallbackToShiki : true ,
71
+ theme : "material-theme-darker" ,
72
+ langs : [
73
+ "bash" ,
74
+ "fish" ,
75
+ "go" ,
76
+ "html" ,
77
+ "javascript" ,
78
+ "json" ,
79
+ "jsonc" ,
80
+ "jsx" ,
81
+ "lua" ,
82
+ "rb" ,
83
+ "ruby" ,
84
+ "sh" ,
85
+ "toml" ,
86
+ "ts" ,
87
+ "ts" ,
88
+ "tsx" ,
89
+ "typescript" ,
90
+ "vim" ,
91
+ "yaml" ,
92
+ "yml" ,
93
+ ] ,
94
+ } ] ,
102
95
] ,
96
+ rehypePlugins : [ [ rehypeAutolinkHeadings , {
97
+ behavior : "append" ,
98
+ } ] ] ,
103
99
shikiConfig : {
104
100
theme : "material-theme-darker" ,
105
101
transformers : [
@@ -134,23 +130,15 @@ export default defineConfig({
134
130
$ : path . resolve ( __dirname , "./src" ) ,
135
131
} ,
136
132
} ,
137
- plugins : [
138
- svgr ( {
139
- include : "**/*.svg?react" ,
140
- svgrOptions : {
141
- plugins : [ "@svgr/plugin-svgo" , "@svgr/plugin-jsx" ] ,
142
- svgoConfig : {
143
- plugins : [
144
- "preset-default" ,
145
- "removeTitle" ,
146
- "removeDesc" ,
147
- "removeDoctype" ,
148
- "cleanupIds" ,
149
- ] ,
150
- } ,
133
+ plugins : [ svgr ( {
134
+ include : "**/*.svg?react" ,
135
+ svgrOptions : {
136
+ plugins : [ "@svgr/plugin-svgo" , "@svgr/plugin-jsx" ] ,
137
+ svgoConfig : {
138
+ plugins : [ "preset-default" , "removeTitle" , "removeDesc" , "removeDoctype" , "cleanupIds" ] ,
151
139
} ,
152
- } ) ,
153
- ] ,
140
+ } ,
141
+ } ) ] ,
154
142
} ,
155
143
image : {
156
144
service : squooshImageService ( ) ,
0 commit comments