-
Notifications
You must be signed in to change notification settings - Fork 4
/
nuxt.config.ts
64 lines (62 loc) · 2.17 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
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
// if you want to use server-side rendering (SSR)
ssr: true,
// target: 'server',
// if you want to use static HTML generation (SSG)
target: 'static',
typescript: {
shim: false,
},
css: [
'primeflex/primeflex.min.css',
'primeflex/themes/saga-blue.css',
'primeicons/primeicons.css',
'prism-themes/themes/prism-vsc-dark-plus.min.css',
'assets/scss/custom-primeflex.scss',
'assets/scss/reboot.scss',
'assets/scss/team-theme.scss',
],
plugins: [{ src: 'prismjs/prism.js', mode: 'server' }],
runtimeConfig: {
private: {
CONTENTFUL_CONTENT_KEY: process.env.CONTENTFUL_CONTENT_KEY,
CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,
CONTENTFUL_ACCESS_TOKEN: process.env.CONTENTFUL_ACCESS_TOKEN,
},
public: {
compression: true,
DEFAULT_LANGUAGE: 'ja',
HOST: process.env.NODE_ENV === 'production' ? 'https://longrun-engineer-blog.web.app' : 'http://localhost:3000',
APP_NAME: 'tech-blog-vue3-nuxt3',
APP_URL: 'https://github.com/longrun/tech-blog-vue3-nuxt3',
SITE_TITLE: 'LongRun Engineering',
SITE_TOP_DESCRIPTION:
'ロンランのエンジニアチームによるストーリー。テック・スタートアップ創業期からの技術と文化について、さまざまな情報をお届けします。',
TEAM_NAME: 'LongRun Inc.',
TEAM_WEBSITE_URL: 'https://longmayyou.run',
TEAM_STATEMENT: 'ランナーが諦めなくていい世界をつくる',
TEAM_LOGO_IMAGE_ON_FOOTER: '/images/logo-white-bg_transparent-w240.png',
TEAM_LOGO_BLACK: '/images/longrun-logo-black-600x315.png',
GITHUB_ORGANIZATION_URL: 'https://github.com/longrun',
GA_ID: process.env.GA_ID,
GA_APP_NAME: 'LongRun Blog',
},
},
head: {
viewport: 'width=device-width, initial-scale=1',
charset: 'utf-8',
},
buildModules: [
[
'@nuxt-modules/compression',
{
algorithm: 'brotliCompress',
success: () => {
console.log('compression success')
},
},
],
],
})