-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
nuxt.config.js
111 lines (95 loc) · 2.91 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
import i18n from './i18n.config.js'
require('dotenv').config()
const baseUrl = process.env.URL || 'http://localhost:8888'
export default {
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',
// Env (https://nuxtjs.org/api/configuration-env/)
env: { baseUrl },
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
title: '[*] Hacktoberfest Repository Checker',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'Hacktoberfest Repository Checker - Unofficial Site. Hacktoberfest presented by DigitalOcean',
},
{
hid: 'og:title',
property: 'og:title',
content: 'Hacktoberfest Repository Checker',
},
{
hid: 'og:description',
property: 'og:description',
content:
'Check if a project takes part in Hacktoberfest this year by looking up their repository URL.',
},
{
hid: 'og:site_name',
property: 'og:site_name',
content: 'hacktoberfest.ninja',
},
{
hid: 'og:image',
property: 'og:image',
content: baseUrl + '/assets/images/OpenGraph.png',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }],
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: ['@/assets/css/main.css', '@/assets/fonts/inter/inter.css'],
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'dark', // fallback value if not system preference found
},
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: ['@/plugins/vue-moment.js', '@/plugins/hacktoberfest.js'],
// 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',
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
],
// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
// https://go.nuxtjs.dev/content
'@nuxt/content',
// https://i18n.nuxtjs.org/
'nuxt-i18n',
],
i18n,
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
axios: {
baseURL: baseUrl, // Used as fallback if no runtime config is provided
},
publicRuntimeConfig: {
axios: {
browserBaseURL: baseUrl,
},
},
privateRuntimeConfig: {
axios: {
baseURL: baseUrl,
},
},
// Content module configuration (https://go.nuxtjs.dev/config-content)
content: {
liveEdit: false,
},
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {},
}