generated from fumeapp/laranuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
118 lines (107 loc) · 4.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
117
118
const meta = {
title: 'Nova',
description: 'Description for Nova.',
url: process.env.WEB_URL,
image: process.env.WEB_URL + '/nova.png',
apiKey: 'AIzaSyCA07GS1boV0NCnZHFUjCNZEdiVQnYJ1aE',
}
import { colors } from "./windi.config"
export default defineNuxtConfig({
srcDir: 'client/',
app: {
head: {
htmlAttrs: {
lang: 'en',
},
title: meta.title,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: meta.description },
{ name: 'msapplication-TileColor', content: colors.swatch5 },
{ name: 'theme-color', content: colors.swatch5 },
// facebook
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:site_name', property: 'og:site_name', content: meta.title },
{ hid: 'og:url', property: 'og:url', content: meta.url },
{ hid: 'og:image', property: 'og:image', content: meta.image },
{ hid: 'og:title', property: 'og:title', content: meta.title },
{ hid: 'og:description', property: 'og:description', content: meta.description },
// twitter
{ hid: 'twitter:card', name: 'twitter:card', content: 'summary_large_image' },
{ hid: 'twitter:image', name: 'twitter:image', content: meta.image },
{ hid: 'twitter:title', name: 'twitter:title', content: meta.title },
{ hid: 'twitter:description', name: 'twitter:description', content: meta.description },
// mobile
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-mobile-web-app-status-bar-style', content: colors.swatch5 },
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: meta.description },
],
link: [
{ rel: 'icon', id: 'favicon', type: 'image/x-icon', href: '/favicon.ico' },
{ 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: colors.swatch5 },
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: 'anonymous' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap', media: 'screen' },
],
script: [
{ src: '//cdnjs.cloudflare.com/ajax/libs/lottie-web/5.8.1/lottie.min.js' },
{ src: '//cdnjs.cloudflare.com/ajax/libs/autosize.js/4.0.2/autosize.min.js', async: true },
{ src: '//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js', async: true },
{ src: '//cdn.jsdelivr.net/npm/[email protected]/dist/maska.js', async: true },
],
},
},
css: [
'@/assets/css/main.css',
'@/assets/css/device.css',
],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: [
'~/components',
'~/components/item',
'~/components/form',
'~/components/header',
'~/components/layout',
'~/components/transition',
],
/**
* @see https://v3.nuxtjs.org/api/configuration/nuxt.config#modules
*/
modules: [
'@vueuse/nuxt',
'nuxt-windicss',
'@tailvue/nuxt',
'nuxt-icon',
'@nuxtjs/html-validator',
],
htmlValidator: {
usePrettier: true,
},
/**
* @see https://v3.nuxtjs.org/guide/features/runtime-config#exposing-runtime-config
*/
runtimeConfig: {
public: {
webURL: process.env.WEB_URL || 'http://localhost:3000',
apiURL: process.env.API_URL || 'http://localhost:8000',
},
},
/**
* WindiCSS configuration
* @see https://github.com/windicss/nuxt-windicss
*/
windicss: {
analyze: false,
},
})