forked from falcondev-oss/github-actions-cache-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnitro.config.ts
More file actions
41 lines (39 loc) · 791 Bytes
/
nitro.config.ts
File metadata and controls
41 lines (39 loc) · 791 Bytes
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
import { fileURLToPath } from 'node:url'
import { version } from './package.json'
export default defineNitroConfig({
preset: 'node-server',
runtimeConfig: {
version: `v${version}${process.env.BUILD_HASH ? ` [${process.env.BUILD_HASH}]` : ''}`,
},
storage: {
db: {
driver: 'fs',
base: './data/db',
},
},
devStorage: {
db: {
driver: 'fs',
base: './data/db',
},
},
alias: {
'@': fileURLToPath(new URL('.', import.meta.url)),
// https://github.com/unjs/consola/issues/276
'consola': 'consola',
},
esbuild: {
options: {
target: 'esnext',
},
},
typescript: {
strict: true,
tsConfig: {
compilerOptions: {
skipLibCheck: true,
},
exclude: ['../../docs'],
},
},
})