-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
47 lines (37 loc) · 900 Bytes
/
nuxt.config.ts
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
42
43
44
45
46
47
import gitCommitInfo from 'git-commit-info';
import packageJson from './package.json';
// When built in GitHub Actions, the commit hash is available in the environment, and gitCommitInfo won't find it.
const commitHash = gitCommitInfo().shortHash ?? process.env.COMMIT_HASH;
const { version } = packageJson;
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@nuxt/image',
'@nuxtjs/i18n',
'@vite-pwa/nuxt',
'@nuxt/ui',
'nuxt-auth-utils',
'nuxt-cron'],
pwa: {},
ssr: false,
nitro: {
prerender: {
crawlLinks: true,
},
},
build: {},
vite: {},
runtimeConfig: {
public: {
commitHash,
version,
buildDate: new Date().toISOString(),
},
},
cron: {
runOnInit: true,
jobsDir: 'cron',
},
compatibilityDate: '2024-10-15',
});