This repository was archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
62 lines (57 loc) · 1.48 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
rootDir: './client',
typescript: {
strict: true,
shim: false
},
runtimeConfig: {
// Private keys are only available on the server
apiSecret: '123',
// Public keys that are exposed to the client
public: {
apiBase: process.env.API_URL || '/api'
},
apiUrl: 'http://localhost:8000'
},
modules: [
// ...
'@pinia/nuxt',
'@vueuse/nuxt',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@vueuse/nuxt',
],
build: {
transpile: ['@headlessui/vue'],
},
colorMode: {
preference: 'system', // default theme
dataValue: 'theme', // activate data-theme in <html> tag
classSuffix: '',
},
tailwindcss: {
configPath: './tailwind.config.ts',
exposeConfig: false,
config: {},
injectPosition: 0,
viewer: true,
},
app: {
head: {
titleTemplate: '%s Gmodern | جی مدرن',
"og:titleTemplate": '%s Gmodern | جی مدرن',
meta: [
{
name: 'viewport',
content: 'width=device-width, initial-scale=1',
},
],
link: [{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}],
},
},
// css
css: [
'~/assets/sass/app.scss',
],
})