-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
111 lines (108 loc) · 2.81 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
import { NuxtConfig } from '@nuxt/types';
const config: NuxtConfig = {
target: 'static',
srcDir: 'src',
head: {
title: 'tanaka.world',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width',
},
{
hid: 'description',
name: 'description',
content: 'tanakaworld is a Software Engineer based in Tokyo.',
},
{
hid: 'keywords',
name: 'keywords',
content: 'tanakaworld,SoftwareEngineer,tanaka.world,art,pixelart',
},
{ hid: 'og:title', property: 'og:title', content: 'The Tanaka World' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: 'https://tanaka.wrold' },
{ hid: 'og:locale', property: 'og:locale', content: 'ja_JP' },
{
hid: 'og:image',
property: 'og:image',
content: 'https://tanaka.world/img/cover.jpg',
},
{
hid: 'og:site_name',
property: 'og:site_name',
content: 'The Tanaka World',
},
{
hid: 'og:description',
property: 'og:description',
content: 'tanakaworld is a Software Engineer in Japan.',
},
{
hid: 'apple-mobile-web-app-title',
name: 'apple-mobile-web-app-title',
content: 'tanaka.world',
},
{
hid: 'msapplication-TileColor',
name: 'msapplication-TileColor',
content: '#da532c',
},
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicons/favicon.ico' },
{
rel: 'apple-touch-icon',
sizes: '76x76',
href: '/favicons/apple-touch-icon.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicons/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicons/favicon-16x16.png',
},
{ rel: 'manifest', href: '/favicons/site.webmanifest' },
{
rel: 'mask-icon',
href: '/favicons/safari-pinned-tab.svg',
color: '#5bbad5',
},
],
},
loading: { color: '#91C3DC' },
css: ['normalize.css', '~/styles/main.css', '~/styles/animation.css'],
plugins: [],
buildModules: ['@nuxt/typescript-build'],
build: {
extractCSS: true,
},
modules: [
[
'nuxt-i18n',
{
baseUrl: 'https://tanaka.world',
// used `this.$nuxtI18nSeo()` in layouts/default.vue
seo: false,
locales: [
{ code: 'en', file: 'en.ts', iso: 'en-US' },
{ code: 'ja', file: 'ja.ts', iso: 'ja-JP' },
],
lazy: true,
langDir: 'locales/',
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
},
},
],
],
};
export default config;