-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
47 lines (47 loc) · 1.15 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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss', 'nuxt-meilisearch', '@pinia/nuxt'],
typescript: {
shim: false
},
components: true,
app: {
head: {
htmlAttrs: [{ 'data-theme': 'dracula' }],
link: [
{
href: 'https://fonts.googleapis.com/css2?family=Fira+Sans',
rel: 'stylesheet'
}
],
title: 'Cocktail Coach',
meta: [{ 'charset': 'utf-8' }]
}
},
css: [
'@fortawesome/fontawesome-svg-core/styles.css'
],
runtimeConfig: {
// The private keys which are only available within server-side
apiSecret: process.env.MEILIKEY,
meiliURL: process.env.MEILIURL,
// Keys within public, will be also exposed to the client-side
public: {
apiSearchKey: process.env.MEILI_SEARCH_KEY
}
},
meilisearch: {
hostUrl: process.env.MEILIURL,
apiKey: process.env.MEILI_SEARCH_KEY,
instantSearch: {
theme: 'algolia'
},
clientOptions: {
placeholderSearch: true,
paginationTotalHits: 1000,
finitePagination: true,
primaryKey: undefined,
keepZeroFacets: false
}
}
})