forked from k2so-dev/laravel-nuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
92 lines (82 loc) · 1.78 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: 'nuxt/',
$development: {
ssr: true,
devtools: {
enabled: false,
},
},
app: {
head: {
title: 'Laravel/Nuxt Boilerplate',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
},
},
routeRules: {
'auth/verify': { ssr: false }
},
css: [
'@/assets/css/main.css',
],
/**
* @see https://v3.nuxtjs.org/api/configuration/nuxt.config#modules
*/
modules: [
'@nuxt/ui',
'@nuxt/image',
'@pinia/nuxt',
'dayjs-nuxt',
'nuxt-security',
],
ui: {
icons: ['heroicons'],
},
image: {
domains: [
process.env.API_URL || 'http://127.0.0.1:8000'
],
alias: {
api: process.env.API_URL || 'http://127.0.0.1:8000'
}
},
security: {
headers: {
crossOriginEmbedderPolicy: 'unsafe-none',
crossOriginOpenerPolicy: 'same-origin-allow-popups',
contentSecurityPolicy: {
"img-src": ["'self'", "data:", "https://*"],
},
},
},
dayjs: {
locales: ['en'],
plugins: ['relativeTime', 'utc', 'timezone'],
defaultLocale: 'en',
defaultTimezone: 'America/New_York',
},
/**
* @see https://v3.nuxtjs.org/guide/features/runtime-config#exposing-runtime-config
*/
runtimeConfig: {
apiLocal: process.env.API_LOCAL_URL,
public: {
apiBase: process.env.API_URL,
apiPrefix: '/api/v1',
storageBase: process.env.API_URL + '/storage/',
providers: {
google: {
name: "Google",
icon: "",
color: "gray",
},
},
},
},
})