-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
91 lines (89 loc) · 2.86 KB
/
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
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
85
86
87
88
89
90
91
// https://nuxt.com/docs/api/configuration/nuxt-config
import vite from './config/vite'
import i18n from './vender/i18n/config'
import viewport from './vender/nuxt-viewport/config'
import security from './vender/security/config'
import robots from './vender/robots/config'
import googleFonts from './vender/googleFonts/config'
const devPort = parseInt(process.env.NUXT_PUBLIC_DEV_PORT || '') ?? 3000
export default defineNuxtConfig({
typescript: {
typeCheck: true,
},
css: [
'vuetify/styles',
//'vuetify/lib/styles/main.sass',
// '@mdi/font/css/materialdesignicons.min.css',
'~/assets/scss/index.scss',
],
modules: [
// doc: https://v8.i18n.nuxtjs.org/
'@nuxtjs/i18n',
// doc: https://vueuse.org/guide/
'@vueuse/nuxt',
// doc: https://unocss.dev/
'@unocss/nuxt',
// doc: https://pinia.vuejs.org/ssr/nuxt.html
'@pinia/nuxt',
// doc: https://nuxt.com/modules/simple-robots
'nuxt-simple-robots',
// doc: https://nuxtseo.com/sitemap/releases/v5
'@nuxtjs/sitemap',
// doc: https://www.npmjs.com/package/nuxt-schema-org
'nuxt-schema-org',
// doc: https://nuxt.com/modules/device
'@nuxtjs/device',
// doc: https://nuxt.com/modules/nuxt-viewport
'nuxt-viewport',
// doc: https://nuxt-security.vercel.app/
'nuxt-security',
// https://google-fonts.nuxtjs.org/
'@nuxtjs/google-fonts',
// https://github.com/fumeapp/dayjs
'dayjs-nuxt',
],
// doc: https://nuxt.com/docs/api/configuration/nuxt-config#postcss
devServer: {
port: devPort,
},
device: {
refreshOnResize: true,
},
postcss: {},
// doc: https://nuxt.com/docs/api/configuration/nuxt-config#runtimeconfig
runtimeConfig: {
// apiUsername: '', // can be overridden by NUXT_API_USERNAME environment variable
// apiPassword: '',
// siteUrl: process.env.NUXT_PUBLIC_BASE_URL,
basicAuthId: '',
basicAuthPassword: '',
public: {
// appBuildVersion: process.env.APP_BUILD_VERSION,
apiKey: '',
baseURL: `http://localhost:${devPort}`, // can be overridden by NUXT_PUBLIC_BASE_URL environment variable
apiBaseS3Preview: `http://localhost:${devPort}/api`,
apiBaseS3Publish: `http://localhost:${devPort}/api`,
apiBaseBackend: `http://localhost:${devPort}/api`,
nodeEnv: '',
basicAuth: '',
gtmId: '',
},
},
devtools: { enabled: true },
build: {
transpile: ['gsap', 'vuetify'],
},
// @ts-ignore
robots,
// @ts-ignore
i18n,
vite,
viewport,
schemaOrg: {
// @ts-ignore
host: process.env.NUXT_PUBLIC_BASE_URL,
},
// @ts-ignore
security,
googleFonts,
})