-
Notifications
You must be signed in to change notification settings - Fork 15
/
nuxt.config.ts
54 lines (54 loc) · 1.6 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: 'Ecommerce demo - Meilisearch',
meta: [
{ name: 'description', content: 'Ecommerce demo featuring fast and relevant onsite search powered by Meilisearch.' },
{ name: 'google-site-verification', content: process.env.GOOGLE_SITE_VERIFICATION_ID }
],
link: [
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }
]
}
},
runtimeConfig: {
public: {
fathomSiteID: process.env.FATHOM_SITE_ID,
meilisearch: {
host: process.env.MEILISEARCH_HOST,
searchApiKey: process.env.MEILISEARCH_SEARCH_API_KEY,
options: {
primaryKey: 'id',
keepZeroFacets: false,
finitePagination: false
}
}
}
},
components: {
dirs: [
'~/components/atoms',
'~/components/molecules',
'~/components/organisms'
]
},
css: [
'~/assets/css/typography.css',
'~/assets/css/spacing.css',
'~/assets/css/shadow.css',
'~/assets/css/utilities.css'
],
modules: [
// Handle interface imports for defineProps
// Docs: https://github.com/wheatjs/vite-plugin-vue-type-imports
'vite-plugin-vue-type-imports/nuxt',
// Optimized images with progressive loading
'@twicpics/components/nuxt3'
],
twicpics: {
domain: process.env.TWICPICS_DOMAIN
}
})