-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
120 lines (119 loc) · 3.71 KB
/
nuxt.config.js
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
119
120
const i18n = require('./i18n/config').i18n
// eslint-disable-next-line nuxt/no-cjs-in-config
module.exports = {
mode: 'universal',
head: {
title: 'Ryss',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, user-scalable=no' },
{ hid: 'description', name: 'description', content: 'Ryss is searching for products in stores near you.' },
{ hid: 'author', name: 'author', content: 'Oskar Lang' },
{ hid: 'publisher', name: 'publisher', content: 'Ryss App' },
{ hid: 'image', name: 'image', content: 'https://ryss.app/img/logo.png' },
{ hid: 'robots', name: 'robots', content: 'index, follow' },
{ hid: 'application-name', name: 'application-name', content: 'Ryss' },
{ hid: 'theme-color', name: 'theme-color', content: '#70d156' },
{ hid: 'og:title', property: 'og:title', content: 'Ryss' },
{ hid: 'og:site_name', property: 'og:site_name', content: 'Ryss' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: 'https://ryss.app' },
{ hid: 'og:description', property: 'og:description', content: 'Ryss is searching for products in stores near you.' },
{ hid: 'og:locale', property: 'og:locale', content: 'en_US' },
{ hid: 'og:image', property: 'og:image', content: 'https://ryss.app/img/logo.png' },
{ hid: 'og:image:type', property: 'og:image:type', content: 'image/png' },
{ hid: 'og:image:width', property: 'og:image:width', content: '500' },
{ hid: 'og:image:height', property: 'og:image:height', content: '500' },
{ hid: 'og:image:alt', property: 'og:image:alt', content: 'Ryss logo' },
{ hid: 'twitter:card', name: 'twitter:card', content: 'summary' },
{ hid: 'twitter:creator', name: 'twitter:creator', content: '@rxsto_official' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'preload', as: 'style', href: 'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap' }
]
},
loading: { color: '#469c30' },
css: [
'@/static/css/reset.css',
'@/static/css/default.css'
],
plugins: [
'@/plugins/auth.js',
'@/plugins/query.js'
],
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/fontawesome'
],
modules: [
'@nuxtjs/pwa',
'@nuxtjs/dotenv',
'@nuxtjs/universal-storage',
'@nuxtjs/apollo',
'nuxt-leaflet',
['nuxt-i18n', i18n]
],
storage: {
cookie: {
prefix: 'r_',
options: {
path: '/'
}
}
},
fontawesome: {
component: 'fa',
suffix: true,
icons: {
solid: [
'faSignInAlt',
'faSignOutAlt',
'faPen',
'faLanguage',
'faCheckCircle',
'faTimesCircle',
'faTimes'
]
}
},
apollo: {
tokenName: 'r_token',
cookieAttributes: {
expires: 1
},
clientConfigs: {
default: {
httpEndpoint: 'https://api.ryss.app',
browserHttpEndpoint: 'https://api.ryss.app/graphql',
httpLinkOptions: {
credentials: 'omit'
},
tokenName: 'r_token'
}
}
},
pwa: {
icon: {
iconSrc: 'static/img/logo.png'
},
meta: {
name: 'Ryss',
author: 'Ryss',
mobileAppIos: true,
description: 'A search engine for local products.',
twitterSite: 'RyssApp',
twitterCreator: 'RyssApp'
},
manifest: {
name: 'Ryss',
lang: 'en'
}
},
build: {
transpile: ['vue-instantsearch', 'instantsearch.js/es'],
extend (config, ctx) {
}
}
}