-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
116 lines (107 loc) · 3.1 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
typescript: { strict: true },
devtools: { enabled: true },
ssr: true,
// Nuxt.js modules
modules: [
'@nuxt/image',
'@nuxtjs/robots',
'nuxt-bootstrap-icons',
'nuxt-swiper',
'@nuxtjs/color-mode',
'@nuxtjs/google-fonts',
],
// Initiaze plugins or configuration package
plugins: [
{ src: '~/plugins/useBootstrap.client.ts', mode: 'client', ssr: false },
{
src: '~/plugins/useAnimateOnScroll.client.ts',
mode: 'client',
ssr: false,
},
],
components: ['~/components'],
css: [
'~/assets/css/index.css',
'~/assets/css/custom-scrollbar.css',
'~/assets/css/custom-swiper-navigation.css',
'~/assets/css/custom-swiper-pagination.css',
'~/assets/css/themes/dark-mode.theme.css',
'~/node_modules/bootstrap/dist/css/bootstrap.min.css',
'~/node_modules/aos/dist/aos.css',
],
app: {
head: {
meta: [
{ name: 'charset', content: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#fff' },
{
name: 'description',
content:
'Citiasia Center for Smart Nation (CCSN) merupakan salah satu sayap strategis dari Citiasia Inc. dalam menyebarkan semangat membangun bangsa menuju Indonesia Smart Nation',
},
{ name: 'keywords', content: 'Sarana Berita Smart City Terkini' },
{ name: 'author', content: 'Smart Nation' },
],
titleTemplate: '%s - Smart Nation',
// titleTemplate: (titleChunk) => {
// return titleChunk ? `${titleChunk} - Site Title` : 'Site Title';
// },
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/logo-smartnation-id-03.png',
},
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css',
},
],
},
},
googleFonts: {
display: 'swap',
preconnect: false,
families: {
Poppins: {
wght: [300, 400, 500, 600, 700],
ital: [300, 400, 500, 600, 700],
},
OpenSans: {
wght: [300, 400, 500, 600],
ital: [300, 400, 500, 600],
},
},
},
image: {
inject: true,
quality: 100,
format: ['webp', 'png'],
domains: ['https://smartnation.id'],
},
// Nuxt.js Color Mode configuration
colorMode: {
preference: 'light', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_CCSN_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '-mode',
storageKey: 'nuxt-ccsn-color-mode',
},
robots: {
/* module options */
rules: [
{ UserAgent: '*' },
{ Disallow: '/' },
{ BlankLine: true },
{ Comment: 'Comment here' },
// Be aware that this will NOT work on target: 'static' mode
{ Sitemap: (req: any) => `https://${req.headers.host}/sitemap.xml` },
],
},
});