-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
99 lines (91 loc) · 2.53 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// https://nuxt.com/docs/api/configuration/nuxt-config
import am from "./locals/am.json";
import en from "./locals/en.json";
import graphql from "@rollup/plugin-graphql";
const isDev = process.env.NODE_ENV === 'development';
export default defineNuxtConfig({
define:{
__DEV__ : isDev.toString()
},
vite: {
plugins: [graphql()],
},
build: {
transpile: ["graphql", "@apollo/client", "@vue/apollo-composable"],
},
app: {
head: {
charset: "utf-8",
viewport: "width=500, initial-scale=1",
meta: [
{
name: "description",
content:
"Welcome to Hibirlink! Our innovative system is designed to connect communities and improve their overall satisfaction by revolutionizing the way people share, sell, buy, use, provide, work, rest, and enjoy things. With Hibirlink, you can easily access high-quality products and services at fair prices, while also benefiting from trusted delivery options. Plus, we're proud to offer the very first flexible online auction system in Africa, making it easier than ever to find exactly what you're looking for. Join our community today and start experiencing the Hibirlink difference!",
},
],
link: [{ rel: "icon", href: "/favicon.svg" }],
},
},
tailwindcss: {
cssPath: "~/assets/css/tailwind.css",
configPath: "tailwind.config",
exposeConfig: false,
//config: {},
injectPosition: 0,
viewer: true,
},
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/i18n",
"@pinia/nuxt",
"@pinia-plugin-persistedstate/nuxt",
"@vueuse/nuxt",
"@nuxt/image-edge",
"@nuxtjs/device",
"@nuxtjs/html-validator",
"magic-regexp/nuxt",
"nuxt-icon",
"nuxt-lodash",
"nuxt-typed-router",
"nuxt-swiper",
"nuxt-svgo",
"nuxt-csurf",
],
i18n: {
// locales: ['en', 'am'],
strategy: "no_prefix",
// defaultLocale: 'en',
vueI18n: {
legacy: false,
locale: "en",
messages: {
en: en,
am: am,
},
},
},
runtimeConfig: {
firebaseApiKey: "",
firebaseAuthDomain: "",
firebaseProjectId: "",
storagePacket: "",
firebaseMessageSenderId: "",
firebaseAppId: "",
wsEndpoint: "",
graphqlEndpoint: "",
restEndpoint: "",
public: {
firebaseApiKey: "",
firebaseAuthDomain: "",
firebaseProjectId: "",
storagePacket: "",
firebaseMessageSenderId: "",
firebaseAppId: "",
graphqlEndpoint: "",
restEndpoint: "",
wsEndpoint: ""
},
},
htmlValidator: {},
});