-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
95 lines (94 loc) · 2.14 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
import { HeadMetaInfo } from './headMetaInfo'
import { ENV_DEV } from './configs/env.development'
import { ENV_PRD } from './configs/env.production'
const environment = process.env.NODE_ENV || 'development'
const headMetaInfo = new HeadMetaInfo()
const ENV = environment === 'development' ? ENV_DEV : ENV_PRD
export default {
head: {
title: headMetaInfo.title,
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1, viewport-fit=cover',
},
{
hid: 'og:site_name',
name: 'og:site_name',
content: headMetaInfo.title,
},
{
hid: 'og:title',
name: 'og:title',
content: headMetaInfo.title,
},
{
hid: 'og:type',
name: 'og:type',
content: headMetaInfo.type,
},
{
hid: 'og:url',
name: 'og:url',
content: headMetaInfo.url,
},
{
hid: 'og:image',
name: 'og:image',
content: headMetaInfo.imageUrl,
},
{
hid: 'description',
name: 'description',
content: headMetaInfo.description,
},
{
hid: 'fb:app_id',
name: 'fb:app_id',
content: '1339453412910523',
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: headMetaInfo.twitterCardType,
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: headMetaInfo.imageUrl,
},
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: 'https://pcd-tokyo.github.io/favicon.ico',
},
],
},
css: ['@/assets/style/common.styl'],
plugins: [],
components: true,
buildModules: ['@nuxt/typescript-build'],
modules: [
'@nuxtjs/axios',
'@nuxtjs/dayjs',
'nuxt-webfontloader',
'@nuxtjs/device',
],
axios: {},
build: {},
dayjs: {
locales: ['en', 'ja'],
defaultLocale: 'ja',
defaultTimeZone: 'Asia/Tokyo',
plugins: ['timezone'],
},
webfontloader: {
google: {
families: ['Noto+Sans+JP:400,700,900&display=swap&subset=japanese'],
},
},
env: ENV,
}