-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
84 lines (78 loc) · 2.05 KB
/
nuxt.config.ts
File metadata and controls
84 lines (78 loc) · 2.05 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// https://nuxt.com/docs/api/configuration/nuxt-config
import process from 'node:process'
export default defineNuxtConfig({
features: {
inlineStyles: false,
},
runtimeConfig: {
public: {
apiHost: 'https://api.codetime.dev',
githubClientId: process.env.NUXT_PUBLIC_GITHUB_CLIENT_ID || '978fe1a6f0c5d12f5beb',
googleClientId: process.env.NUXT_PUBLIC_GOOGLE_CLIENT_ID || '1020029657488-f66ubcmj6qqg4h4ptjk505ljmkv55jkv.apps.googleusercontent.com',
sentryDsn: process.env.NUXT_PUBLIC_SENTRY_DSN || 'https://3682972d2ab3f65b115e618182c7fa35@o4509038403911680.ingest.us.sentry.io/4509768911486976',
},
},
site: {
url: 'https://codetime.dev',
name: 'Code Time',
},
// ogImage: {
// fonts: [
// 'Noto+Sans+SC:400', // Too big for workers
// ],
// },
gtag: {
id: 'G-36N091FBKT',
},
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
imports: {
dirs: [
'composables/**',
'utils/**',
'i18n/**',
],
},
modules: ['@unocss/nuxt', '@vueuse/nuxt', '@nuxtjs/robots', '@nuxtjs/sitemap', '@nuxt/image', 'nuxt-gtag', [
'@nuxtjs/google-fonts',
{
download: true,
families: {
'Share Tech Mono': true,
},
},
], '@sentry/nuxt'],
sitemap: {
exclude: [
'/[...slug]',
'/**/dashboard/**',
'/**/demo/**',
],
defaults: {
changefreq: 'weekly',
priority: 0.6,
},
autoLastmod: false,
urls: async () => {
// Generate URLs only for main pages; user pages are handled by dynamic routes.
return []
},
},
sentry: {
dsn: process.env.NUXT_PUBLIC_SENTRY_DSN || 'https://3682972d2ab3f65b115e618182c7fa35@o4509038403911680.ingest.us.sentry.io/4509768911486976',
environment: process.env.NODE_ENV || 'development',
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1,
integrations: {
browserTracing: true,
replay: {
maskAllText: false,
blockAllMedia: false,
},
},
},
compatibilityDate: '2024-10-13',
})