-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
56 lines (55 loc) · 1.22 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
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
srcDir: "src/",
runtimeConfig: {
public: {
SITE_NAME: process.env.SITE_NAME,
OWNER_NAME: process.env.OWNER_NAME
}
},
css: ['vuetify/lib/styles/main.sass'],
components: [
{
path: '@/components/',
pathPrefix: false
},
],
autoImports: {
dirs: ['stores']
},
build: {
transpile: ['vuetify']
},
buildModules: [
// 別途 pinia本体も要インストール
'@pinia/nuxt',
// @nuxtjs/i18nはまだ Nuxt3をサポートしていない
'@intlify/nuxt3'
],
intlify: {
// src/localesフォルダがデフォルトで参照される
vueI18n: {
locale: 'ja',
fallbackLocale: 'en',
}
},
// @ts-ignore
vite: {
define: {
'process.env.DEBUG': 'false',
}
},
typescript: {
strict: true
},
meta: {
title: process.env.SITE_NAME,
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
charset: 'utf-8',
meta: [
{ hid: 'description', name: 'description', content: process.env.SITE_DESCRIPTION },
{ name: 'robots', content: 'noarchive' }
]
}
})