File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { builtinModules } from 'node:module' ;
1
2
// @ts -check
2
3
import { dirname , resolve } from 'node:path' ;
3
4
import { fileURLToPath } from 'node:url' ;
4
5
import cloudflare from '@astrojs/cloudflare' ;
5
6
import starlight from '@astrojs/starlight' ;
6
7
import { defineConfig } from 'astro/config' ;
7
- import { builtinModules } from 'node:module' ;
8
8
9
9
export default defineConfig ( {
10
10
site : process . env . DEPLOY_URL ?? 'https://astro-tips.dev' ,
@@ -74,7 +74,7 @@ export default defineConfig({
74
74
} ,
75
75
} ,
76
76
ssr : {
77
- external : [ ...builtinModules , ...builtinModules . map ( mod => `node:${ mod } ` ) ] ,
77
+ external : [ ...builtinModules , ...builtinModules . map ( ( mod ) => `node:${ mod } ` ) ] ,
78
78
} ,
79
79
} ,
80
80
output : 'server' ,
Original file line number Diff line number Diff line change 1
1
import { defineCollection , z } from 'astro:content' ;
2
- import { docsLoader } from " @astrojs/starlight/loaders" ;
2
+ import { docsLoader } from ' @astrojs/starlight/loaders' ;
3
3
import { docsSchema } from '@astrojs/starlight/schema' ;
4
+ import { glob } from 'astro/loaders' ;
4
5
import { minVersion , outside , validRange } from 'semver' ;
5
6
import pkg from '../../package.json' ;
6
- import { glob } from 'astro/loaders' ;
7
7
8
8
const astroVersion = minVersion ( pkg . dependencies . astro ) ?. version ;
9
9
@@ -29,7 +29,7 @@ const starlightSchema = defineCollection({
29
29
} ) ;
30
30
31
31
const resourcesSchema = defineCollection ( {
32
- loader : glob ( { pattern : " **/*.json" , base : " ./src/content/resources" } ) ,
32
+ loader : glob ( { pattern : ' **/*.json' , base : ' ./src/content/resources' } ) ,
33
33
schema : z . object ( {
34
34
tags : z . array ( z . string ( ) ) ,
35
35
title : z . string ( ) ,
You can’t perform that action at this time.
0 commit comments