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
30 lines (28 loc) · 763 Bytes
/
nitro.config.ts
File metadata and controls
30 lines (28 loc) · 763 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
import { fileURLToPath } from 'node:url'
import { version } from './package.json'
export default defineNitroConfig({
preset: 'node-cluster',
runtimeConfig: {
version: `v${version}${process.env.BUILD_HASH ? ` [${process.env.BUILD_HASH}]` : ''}`,
},
alias: {
'@': fileURLToPath(new URL('.', import.meta.url)),
},
typescript: {
strict: true,
tsConfig: {
compilerOptions: {
skipLibCheck: true,
},
},
},
compatibilityDate: '2026-02-21',
experimental: {
tasks: true,
},
scheduledTasks: {
'*/5 * * * *': ['cleanup:uploads'], // every 5 minutes
'0 0 * * *': ['cleanup:cache-entries', 'cleanup:storage-locations'], // daily
'0 * * * *': ['cleanup:parts', 'cleanup:merges'], // hourly
},
})