-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
82 lines (75 loc) · 2.51 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
const config = require('./developer.json')
const siteTitle = `${config.name} | ${config.role}`
/*
* Nuxt 3 Config File
Usage: https://nuxt.com/docs/api/configuration/nuxt-config
*/
export default defineNuxtConfig({
/**
* * App Config
* app config: https://nuxt.com/docs/api/configuration/nuxt-config#app
* head config: https://nuxt.com/docs/api/configuration/nuxt-config#head
* meta config: https://nuxt.com/docs/getting-started/seo-meta
* pageTransition config: https://nuxt.com/docs/getting-started/transitions#transitions
* TODO: Add more meta tags for SEO
* TODO: Add tags for social media sharing
* TODO: Migrate apple-touch-icon config to manifest.json
*/
app: {
head: {
title: siteTitle, // App window nav title
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'A awesome developer portfolio design.' },
{ hid: 'og:title', property: 'og:title', content: siteTitle },
{ hid: 'og:description', property: 'og:description', content: 'A awesome developer portfolio design.' },
{ hid: 'og:image', property: 'og:image', content: 'demo-share.jpg' },
{ hid: 'og:url', property: 'og:url', content: 'https://developer-portfolio-v1.netlify.app/' },
{ name: 'theme-color', content: '#010C15' },
// ...
],
link: [
{ rel: 'manifest', href: 'pwa/manifest.json' },
{ rel: 'apple-touch-icon', href: 'pwa/icons/apple-touch-icon.png' },
],
},
},
/**
* * Nuxt 3 Modules
* Official modules: https://nuxt.com/modules
*/
modules: [
'@nuxtjs/tailwindcss',
],
components: {
dirs: [
'~/components',
],
},
/**
* * Tailwind CSS Config
* Options: https://tailwindcss.nuxt.dev/getting-started/options/
* Docs: https://tailwindcss.nuxt.dev
*/
tailwindcss: {
cssPath: '~/assets/tailwind.css',
configPath: 'tailwind.config',
exposeConfig: true, // true to resolve the tailwind config in runtime. https://tailwindcss.nuxt.dev/getting-started/options/#exposeconfig
injectPosition: 0,
viewer: false,
},
/**
* * Runtime Config (Environment Variables)
* Usage: https://nuxt.com/docs/guide/going-further/runtime-config
*/
runtimeConfig: {
// The private keys which are only available server-side
apiSecret: '123',
// Keys within public are also exposed client-side
public: {
apiBase: '/api',
dev: config
}
}
})