generated from antfu/vitesse-nuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
100 lines (98 loc) · 2.13 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
100
import { defineNuxtConfig } from 'nuxt/config'
const APP_NAME = "Harding's Property Services"
const BASE_URL =
process.env.BASE_URL ?? 'https://www.hardingspropertyservices.com/'
const CDN_URL = process.env.CDN_URL ?? BASE_URL
export default defineNuxtConfig({
runtimeConfig: {
public: {
APP_NAME,
CDN_URL,
BASE_URL,
STRAPI_URL: process.env.STRAPI_URL ?? 'https://strapi.daim.dev',
plausible: {
domain:
process.env.PLAUSIBLE_DOMAIN ?? 'www.hardingspropertyservices.com',
apiHost: process.env.PLAUSIBLE_API_HOST ?? 'https://plausible.daim.dev',
},
IMGPROXY_KEY: process.env.IMGPROXY_KEY,
IMGPROXY_SALT: process.env.IMGPROXY_SALT,
},
},
modules: [
'@nuxtjs/plausible',
'@formkit/nuxt',
// '@nuxtjs/sitemap',
'@nuxt/image-edge',
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
// '@nuxtjs/strapi',
'nuxt-lodash',
],
// sitemap: {
// hostname: BASE_URL,
// routes: ['/', '/contact', '/gallery'],
// // i18n: 'en',
// xslUrl: '/sitemap.xsl',
// },
image: {
// baseUrl: CDN_URL,
provider: 'imgproxy',
domains: [
'images.unsplash.com',
's3.ap-northeast-2.wasabisys.com',
'imgproxy.daim.dev',
],
cloudflare: {
baseURL: CDN_URL,
},
providers: {
imgproxy: {
provider: '~/utils/imgproxy',
options: {
key: process.env.IMGPROXY_KEY,
salt: process.env.IMGPROXY_SALT,
},
},
},
},
vite: {
build: {
sourcemap: true,
// target: 'es2015',
},
},
vueuse: {
ssrHandlers: true,
},
unocss: {
uno: true,
attributify: true,
preflight: true,
webFonts: {
fonts: {
brand: [
{ name: 'Alfa Slab One' },
{
name: 'sans-serif',
provider: 'none',
},
],
},
},
icons: {
scale: 1.2,
},
theme: {
colors: {
primary: '#6a3e1e',
},
},
shortcuts: [
{
'section-bg': `rounded-lg bg-gray-100 text-gray-700 dark:bg-gray-900 dark:text-gray-300`,
},
],
},
})