generated from Meeovi/Meeovi-Starter-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
112 lines (102 loc) · 3.07 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
112
//import { defineNuxtConfig } from 'nuxt'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
extends: ['@sidebase/core'],
css: [
'assets/web/assets/mobirise-icons2/mobirise2.css',
'assets/bootstrap/css/bootstrap.min.css',
'assets/tether/tether.min.css',
'assets/bootstrap/css/bootstrap-grid.min.css',
'assets/bootstrap/css/bootstrap-reboot.min.css',
'assets/theme/css/style.css',
'assets/mobirise/css/mbr-additional.css',
'vuetify/lib/styles/main.sass',
'@mdi/font/css/materialdesignicons.min.css',
'@fortawesome/fontawesome-svg-core/styles.css',
'assets/styles/styles.css',
],
modules: [
'@nuxtjs/apollo',
//'@sidebase/nuxt-auth',
'@nuxt/content',
'@nuxtjs/i18n',
"nuxt-security",
//'nuxt-vue3-google-signin',
'nuxt-meilisearch',
],
/* googleSignIn: {
clientId: 'CLIENT ID OBTAINED FROM GOOGLE API CONSOLE',
}, */
/*
auth: {
// The module is enabled. Change this to disable the module
isEnabled: false,
// The origin is set to the development origin. Change this when deploying to production
origin: 'http://localhost:3000',
// The base path to the authentication endpoints. Change this if you want to add your auth-endpoints at a non-default location
basePath: '/api/auth',
// Whether to periodically refresh the session. Change this to `true` for a refresh every seconds or set this to a number like `5000` for a refresh every 5000 milliseconds (aka: 5 seconds)
enableSessionRefreshPeriodically: true,
// Whether to refresh the session whenever a window focus event happens, i.e, when your user refocuses the window. Set this to `false` to turn this off
enableSessionRefreshOnWindowFocus: true,
// Whether to add a global authentication middleware that will protect all pages without exclusion
enableGlobalAppMiddleware: false
},
*/
meilisearch: {
hostUrl: 'http://my-meilisearch-server.domain.com',
searchApiKey: '<your_public_key>',
adminApiKey: '<your_secret_key>',
serverSideUsage: true,
instantSearch: {
theme: 'algolia'
}
},
i18n: {
strategy: 'no_prefix',
en: { pathMatch: ['not-found-my-post'] },
fr: { pathMatch: ['not-found-mon-article'] },
locales: [
{
code: 'en',
name: 'English'
},
{
code: 'es',
name: 'Español'
},
{
code: 'fr',
name: 'Français'
}
],
skipSettingLocaleOnNavigate: true,
detectBrowserLanguage: {
useCookie: true,
cookieCrossOrigin: true
}
},
apollo: {
clients: {
default: {
httpEndpoint: 'http://localhost:4000/graphql',
wsEndpoint: "ws://localhost:4000/graphql"
}
},
},
build: {
transpile: [
'vuetify',
"@fortawesome/vue-fontawesome",
"@fortawesome/fontawesome-svg-core",
"@fortawesome/pro-solid-svg-icons",
"@fortawesome/pro-regular-svg-icons",
"@fortawesome/free-brands-svg-icons",
],
},
vite: {
define: {
'process.env.DEBUG': false,
},
},
})