-
Notifications
You must be signed in to change notification settings - Fork 4
/
nuxt.config.ts
99 lines (90 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({
// Add a trailing slash to each route
nitro: {
prerender: {
crawlLinks: true,
routes: ['/'],
},
},
site: {
url: 'https://www.admin.myissue.io',
},
devServer: {
port: 4000,
},
runtimeConfig: {
public: {
LARAVEL_APP_URL_PRODUCTION: process.env.LARAVEL_APP_URL_PRODUCTION,
LARAVEL_APP_URL: process.env.LARAVEL_APP_URL,
APP_URL: process.env.APP_URL,
APP_NAME: process.env.APP_NAME,
APP_ENV: process.env.APP_ENV,
},
},
devtools: { enabled: true },
modules: ['@nuxtjs/sitemap', '@pinia/nuxt', 'nuxt-simple-robots'],
sitemap: {
sources: ['/api/__sitemap__/urls'],
},
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
htmlAttrs: {
lang: 'en',
},
script: [
{
src: `https://www.googletagmanager.com/gtag/js?id=${process.env.GOOGLE_GTAG}`,
},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GT-M34SGDHL');`,
],
link: [
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap',
},
// favicon # start
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png',
},
{ rel: 'manifest', href: '/site.webmanifest' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' },
// favicon # end
],
},
},
css: ['~/assets/css/main.css'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
compatibilityDate: '2024-11-19',
});