This repository was archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
58 lines (58 loc) · 1.92 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
// The private keys which are only available server-side
apiSecret: 'jabelic',
apiKey: process.env.NUXT_API_KEY,
enApiKey: process.env.NUXT_EN_API_KEY,
apiEndpoint: process.env.NUXT_MICROCMS_API_END_POINT,
enApiEndpoint: process.env.NUXT_EN_MICROCMS_API_END_POINT,
// Keys within public are also exposed client-side
public: {
apiKey: process.env.NUXT_API_KEY,
enApiKey: process.env.NUXT_EN_API_KEY,
apiEndpoint: process.env.NUXT_MICROCMS_API_END_POINT,
enApiEndpoint: process.env.NUXT_EN_MICROCMS_API_END_POINT,
apiBase: '/api'
}
},
css: ['~/assets/style/_reset.css', '~/assets/style/index.css'],
modules: ['@pinia/nuxt', '@vueuse/nuxt', 'nuxt-mapple'],
mapple: {
basePath: 'https://webpress.jabelic.workers.dev',
static: ['/', '/en', '/ja']
},
app: {
head: {
title: 'Jabelic Web Press',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'google-site-verification', content: 'OQd0Lr3Xe8OJczVAKFAVy6DlZaRVd3gRNjnrYVpDuZQ' }
],
link: [
{ rel: 'icon', type: 'image/png', href: '/icon-16x16.png' } // これを追記する
]
}
},
components: [
/**
* components内のディレクトリ構成を無視してauto importさせる設定
* -> ファイル名はuniqueであることが必須となる
*/
{
path: '/<rootDir>/src/views/components',
pathPrefix: false
}
],
imports: {
dirs: [
// Scan top-level modules
'src/views/composables',
// ... or scan modules nested one level deep with a specific name and file extension
'src/views/composables/*/index.{ts,js,mjs,mts}',
// ... or scan all modules within given directory
'src/views/composables/**'
]
}
})