This repository has been archived by the owner on May 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
nuxt.config.js
212 lines (203 loc) · 5.64 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
import colors from "vuetify/es5/util/colors";
import { languages } from "@ourjapanlife/findadoc-localization/supported_languages.json";
const SITE_TITLE = "Find a Doc JAPAN";
const SITE_DESCRIPTION =
"A community database to share clinic information in Japan.";
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: "COVID-19 Vaccination Info",
title: SITE_TITLE,
htmlAttrs: {
lang: "en",
},
meta: [
{
name: "google-site-verification",
content: "-iHcqQwxR-wiZU6Y4BKtcn79tUZJAcyWXJt7w7iobpY",
},
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: SITE_DESCRIPTION,
},
{
hid: "twitter:card",
name: "twitter:card",
content: "summary",
},
{
hid: "twitter:title",
name: "twitter:title",
content: SITE_TITLE,
},
{
hid: "twitter:description",
name: "twitter:description",
content: SITE_DESCRIPTION,
},
{
hid: "twitter:image",
name: "twitter:image",
content: "https://www.findadoc.jp/twitter-card.png",
},
{
hid: "twitter:image:alt",
name: "twitter:image:alt",
content: SITE_TITLE,
},
{
hid: "og:title",
property: "og:title",
content: SITE_TITLE,
},
{
hid: "og:description",
property: "og:description",
content: SITE_DESCRIPTION,
},
{
hid: "og:image",
property: "og:image",
content: "https://www.findadoc.jp/social-card.jpeg",
},
{
hid: "og:image:secure_url",
property: "og:image:secure_url",
content: "https://www.findadoc.jp/social-card.jpeg",
},
{
hid: "og:image:alt",
property: "og:image:alt",
content: SITE_TITLE,
},
{
hid: "og:url",
property: "og:url",
content: "https://www.findadoc.jp",
},
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [{ src: "~/plugins/vuelidate" }],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
"@nuxtjs/tailwindcss",
// https://go.nuxtjs.dev/vuetify
"@nuxtjs/vuetify",
],
env: {
FIREBASE_ENV: process.env.FIREBASE_ENV,
TWITTER_API_BEARER_TOKEN: process.env.TWITTER_API_BEARER_TOKEN,
},
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
"@nuxt/content",
[
"@nuxtjs/firebase",
{
config: {
/* eslint-disable-next-line no-undef */
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
projectId: process.env.FIREBASE_PROJECT_ID,
storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.FIREBASE_APP_ID,
measurementId: process.env.FIREBASE_MEASUREMENT_ID,
},
services: {
auth: true,
firestore: true,
analytics: true,
},
},
],
[
"nuxt-i18n",
{
locales: languages,
defaultLocale: "en",
// https://i18n.nuxtjs.org/options-reference/#detectbrowserlanguage
detectBrowserLanguage: {
alwaysRedirect: true, // user selected locale takes precedence
fallbackLocale: "en",
onlyOnRoot: true, // recommended for SEO
useCookie: true,
},
langDir: "node_modules/@ourjapanlife/findadoc-localization/locales",
vueI18n: {
fallbackLocale: "en",
},
},
],
["@nuxtjs/axios"],
["@nuxtjs/proxy"],
],
//https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-vue-config
// vue: {
// config: {
// css: {
// // vuetify bug hack. https://github.com/vuetifyjs/vuetify/issues/5271
// extract: { ignoreOrder: true }
// }
// }
// },
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
theme: {
dark: false,
light: true,
themes: {
dark: {
// material trio
primary: "#031525",
accent: colors.cyan.lighten1,
secondary: colors.indigo.darken2,
// alert colors
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
// misc
alertCard: colors.cyan.lighten4,
alertButton: colors.cyan.lighten1,
},
light: {
// material trio
primary: "#031525",
accent: colors.cyan.lighten3,
secondary: colors.indigo.darken2,
// alert colors
info: colors.teal.darken2,
warning: colors.orange.darken4,
error: colors.red.darken4,
success: colors.green.darken3,
// misc
alertCard: colors.cyan.lighten4,
alertButton: colors.cyan.lighten1,
},
},
},
},
axios: {
proxy: true,
},
proxy: {
"/twitter/": {
target: "https://api.twitter.com",
pathRewrite: { "^/twitter": "/" },
},
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
extractCSS: true,
},
};