-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.js
152 lines (151 loc) · 4.46 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
require('dotenv').config()
import colors from 'vuetify/es5/util/colors'
export default {
mode: 'universal',
/*
** Headers of the page
*/
head: {
titleTemplate: '%s | ' + 'めしてく',
title: 'めしてく',
htmlAttrs: {
lang: 'ja'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'default' },
{ name: 'description', content: '金沢工業大学周辺の飲食店を守りたいをコンセプトに飲食店のテイクアウトの情報を収集拡散するサービスです。' },
{ name: 'keywords', content: 'テイクアウト,金沢工業大学,お弁当' },
{ property: 'og:title', content: 'めしてく' },
{ property: 'og:site_name', content: 'めしてく' },
{ property: 'og:type', content: 'website' },
{ property: 'og:url', content: 'https://takeout-kit-web.herokuapp.com' },
{ property: 'og:image', content: 'https://takeout-kit-web.herokuapp.com/thumbnail.png' },
{ name: 'twitter:card', content: 'summary' },
{ name: 'twitter:site', content: '@meshiteku' },
{ name: 'twitter:creator', content: '@zukky_rikugame' },
{ name: 'twitter:title', content: 'めしてく' },
{ name: 'twitter:description', content: '金沢工業大学周辺の飲食店を守りたいをコンセプトに飲食店のテイクアウトの情報を収集拡散するサービスです。' },
{ name: 'twitter:image', content: 'https://takeout-kit-web.herokuapp.com/twitter_thumbnail.png' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/icons/favicon.ico' },
{ rel: 'apple-touch-icon', size: '192x192', href: '/icons/icon-192x192.png' },
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '~/plugins/vuetify', ssr: false },
{ src: '~/plugins/infiniteloading', ssr: false },
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxtjs/dotenv',
'@nuxtjs/vuetify',
'@nuxtjs/google-analytics'
],
googleAnalytics: {
id: 'UA-165629168-1'
},
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/markdownit',
'@nuxtjs/apollo',
'@nuxtjs/axios',
'@nuxtjs/pwa'
],
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
customVariables: ['~/assets/scss/variables.scss'],
theme: {
// デフォルトはダークモードでない
dark: false,
themes: {
// ダークモードだとこっち
dark: {
primary: '#ff9800',
secondary: '#ff5722',
accent: '#2196f3',
error: '#f44336',
warning: '#ffeb3b',
info: '#8bc34a',
success: '#4caf50'
},
// ダークモードでなければこっち
light: {
primary: '#fcbe32',
secondary: '#fcbe32',
accent: '#88d8b0',
error: '#f44336',
warning: '#ffeb3b',
info: '#8bc34a',
success: '#4caf50'
}
}
}
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend (config, ctx) {
}
},
serverMiddleware: [
// API middleware
'~/api/index.js',
'redirect-ssl',
],
axios: {
baseURL: process.env.NODE_ENV !== 'production' ? 'http://localhost:3000/api/' : 'http://localhost:' + process.env.PORT + '/api/',
browserBaseURL: process.env.API_ENDPOINT,
proxyHeaders: true
},
apollo: {
clientConfigs: {
default: '~/apollo/client-configs/default.js'
}
},
markdownit: {
injected: true,
breaks: true,
html: true,
linkify: true,
typography: true,
},
manifest: {
name: 'めしてく',
short_name: 'めしてく',
description: '金沢工業大学周辺の飲食店を守りたいをコンセプトに飲食店のテイクアウトの情報を収集拡散するサービスです。',
lang: 'ja',
theme_color: "#fcbe32",
background_color: '#e1eef6',
display: 'standalone',
scope: 'https://takeout-kit-web.herokuapp.com',
start_url: 'https://takeout-kit-web.herokuapp.com'
}
}