-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
183 lines (168 loc) · 5.83 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
const siteTitle = 'Incomplete Niwa Archives 終らない庭のアーカイヴ'
const siteDescription =
'2019年4月より始動した庭園アーカイヴ・プロジェクトは、現代のテクノロジーを駆使して、日本庭園の多様な側面をデータ化した新しい総合的アーカイヴを研究開発するものです。'
// TODO: 環境変数から読み込むなどしてstagingなどにも対応する
// const baseUrl = 'https://special.ycam.jp/niwa/'
// const baseUrl = 'https://niwa.ycam.jp'
const baseUrl = 'https://niwa-archives.org/ina/'
export default {
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',
router: {
base: '/ina/',
trailingSlash: true,
middleware: ['redirection', 'spreadsheets']
},
ssr: false,
manifest: {
crossorigin: 'use-credentials'
},
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
title: 'Incomplete Niwa Archives 終らない庭のアーカイヴ',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
// { name: 'google-site-verification', content: '' },
{ hid: 'description', name: 'description', content: siteDescription },
{ hid: 'description', name: 'description', content: siteDescription },
{ hid: 'og:site_name', property: 'og:site_name', content: siteTitle },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: baseUrl },
{ hid: 'og:title', property: 'og:title', content: siteTitle },
{
hid: 'og:description',
property: 'og:description',
content: siteDescription
},
{
hid: 'og:image',
property: 'og:image',
content: `${baseUrl}/share.jpg`
},
{ hid: 'twitter:title', property: 'twitter:title', content: siteTitle },
{ hid: 'twitter:url', property: 'twitter:url', content: baseUrl },
{
hid: 'twitter:description',
property: 'twitter:description',
content: siteDescription
},
{
hid: 'twitter:image',
property: 'twitter:image',
content: `${baseUrl}/share.jpg`
},
{
hid: 'twitter:card',
property: 'twitter:card',
content: 'summary_large_image'
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'stylesheet',
type: 'text/css',
href: '/ina/assets/potree/build/potree/potree.css'
},
{
rel: 'stylesheet',
type: 'text/css',
href: '/ina/assets/potree/libs/jstree/themes/mixed/style.css'
},
{
rel: 'stylesheet',
type: 'text/css',
href: '/ina/assets/potree/libs/jquery-ui/jquery-ui.css'
}
],
script: [
{
src:
'//webfont.fontplus.jp/accessor/script/fontplus.js?Kda7jDZHaBw%3D&box=BAYjMHHVKVM%3D&aa=1&ab=2',
defer: true
},
{ src: '/ina/assets/potree/libs/jquery/jquery-3.1.1.min.js' },
{ src: '/ina/assets/potree/libs/spectrum/spectrum.js' },
{ src: '/ina/assets/potree/libs/jquery-ui/jquery-ui.min.js' },
{ src: '/ina/assets/potree/libs/three.js/build/three.min.js' },
{ src: '/ina/assets/potree/libs/three.js/extra/lines.js' },
{ src: '/ina/assets/potree/libs/other/BinaryHeap.js' },
{ src: '/ina/assets/potree/libs/tween/tween.min.js' },
{ src: '/ina/assets/potree/libs/d3/d3.js' },
{ src: '/ina/assets/potree/libs/proj4/proj4.js' },
{ src: '/ina/assets/potree/libs/openlayers3/ol.js' },
{ src: '/ina/assets/potree/libs/i18next/i18next.js' },
{ src: '/ina/assets/potree/libs/jstree/jstree.js' },
{ src: '/ina/assets/potree/build/potree/potree.js' },
{ src: '/ina/assets/potree/libs/plasio/js/laslaz.js' }
]
},
loading: {
color: '#C9E2D4',
height: '4px'
},
loadingIndicator: {
color: '#666666',
background: '#0D1F1F'
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: ['element-ui/lib/theme-chalk/index.css', '~assets/style/common'],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
'~plugins/element-ui',
'~plugins/util',
'~plugins/vue-scrollto',
'~plugins/key-detection',
'~plugins/splitpanes',
'~plugins/vue-youtube'
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
'@nuxtjs/svg',
'@nuxtjs/google-analytics'
],
googleAnalytics: {
id: 'UA-70788872-16'
},
// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
'@nuxtjs/axios',
'@nuxtjs/device',
'@nuxtjs/dotenv',
'@nuxtjs/pwa',
'nuxt-ua'
],
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
axios: {},
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {
transpile: ['three']
},
// ローカルIPでデバッグしたい時に有効化
// server: {
// port: 3000, // デフォルト: 3000
// host: '0.0.0.0' // デフォルト: localhost
// },
// そのほかにやること
// - ウェブフォントFONTPLUSの管理画面にIPを追加
// - [GoogleCloudPlatform](https://console.cloud.google.com/apis/credentials/key/c238b06c-505e-4198-91bf-6557605ab380?hl=ja&project=proxies-of-client)の管理画面から、ウェブサイトの制限のところにドメインまたはIPを追加すること。
generate: {
routes: [
'/fugetsu_ro-spring/',
'/fugetsu_ro-summer/',
'/fugetsu_ro-autumn/',
'/fugetsu_ro-winter/',
'/hosoo/',
'/joei_ji/',
'/murin_an-snow/',
'/murin_an-summer/',
'/murin_an-winter/',
'/ryogen_in/'
]
}
}