-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
99 lines (89 loc) · 2.44 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
export default defineNuxtConfig({
css: [
'@/assets/css/main.css',
],
components: [
{
path: '~/components',
pathPrefix: false,
},
{
path: '~/views',
pathPrefix: false,
},
],
plugins: [
'~/plugins/observe-visibility.ts',
],
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/partytown', '@pinia/nuxt'],
pages: true,
vite: {
ssr: {
noExternal: ["moment"],
},
},
runtimeConfig: {
public: {
'BLOG_API_URL': 'https://blog-api.necodeo.com/api',
'IMAGES_URL': 'http://images.localhost',
'WEBSOCKET_SESSION_HOST': 'localhost', // necodeo.com
'WEBSOCKET_ADDRESS': 'ws://localhost:8090', // wss://www.necodeo.com:8090
}
},
experimental: {
watcher: 'parcel',
},
app: {
head: {
htmlAttrs: {
lang: 'pl',
},
viewport: 'width=device-width, initial-scale=1',
charset: 'utf-8',
script: [
{
hid: 'adsbygoogle-script',
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-google6',
async: true,
'data-ad-client': 'ca-google',
},
{
hid: 'gtag-script',
type: 'text/partytown',
src: 'https://www.googletagmanager.com/gtag/js?id=G-3YWVF3BMB',
async: true,
},
{
hid: 'gtag-inner-script',
innerHTML: `
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'G-3YWVF3BMBM')
`,
},
],
link: [
{
href: '/icons/apple-touch-icon.png',
rel: 'apple-touch-icon',
},
{
href: '/manifest.json',
rel: 'manifest',
},
{
href: '//fonts.googleapis.com',
rel: 'preconnect',
},
{
href: '//fonts.googleapis.com',
rel: 'dns-prefetch',
},
],
},
},
compatibilityDate: '2025-01-18',
})