-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
71 lines (67 loc) · 2.08 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
import Dotenv from 'dotenv';
Dotenv.config();
export default {
// Server
server: {
host: '127.0.0.1',
port: 80,
},
// Project
srcDir: 'src/',
components: [{ path: '~/components/app', prefix: 'app' }],
head: {
meta: [
{ charset: 'utf-8' },
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' },
{ name: 'viewport', content: process.env.app_viewport },
{ name: 'keywords', content: 'NEXUS RENTAL PARTNER, NEXUS, RENTAL PARTNER' },
{ name: 'author', content: 'Daomtthuan' },
{ name: 'robots', content: 'index, follow, archive' },
{ hid: 'description', name: 'description', content: process.env.app_description },
{ property: 'st:section', content: process.env.app_description },
{ name: 'twitter:title', content: process.env.app_name },
{ name: 'twitter:description', content: process.env.app_description },
{ name: 'og:locale', content: 'ja_JP' },
// { name: 'twitter:image', content: },
//og:image:width
//og:image:height
//og:image:secure_url
],
title: process.env.app_name,
titleTemplate: `${process.env.app_name} - %s`,
noscript: [{ innerHTML: 'This website requires JavaScript.' }],
},
modules: ['@nuxtjs/pwa'],
pwa: {
meta: {
viewport: process.env.app_viewport,
name: process.env.app_name,
author: process.env.app_author,
description: process.env.app_description,
theme_color: process.env.app_color,
lang: process.env.app_language,
ogHost: 'http://ctu-itclub.github.io/',
//ogImage
twitterCard: 'summary_large_image',
nativeUI: true,
},
manifest: {
name: process.env.app_name,
description: process.env.app_description,
lang: process.env.app_language,
background_color: process.env.app_color,
theme_color: process.env.app_color,
},
},
// Build
target: 'static',
buildModules: ['@nuxt/typescript-build', '@nuxtjs/dotenv'],
dotenv: {
path: '~/../',
},
build: {
babel: {
presets: () => [['@nuxt/babel-preset-app', { loose: true }]],
},
},
};