-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
executable file
·95 lines (86 loc) · 2.17 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
debug: false, // Para encontrar errorres de hidratacion
devtools: { enabled: false },
devServer: {
port: 3000
},
ssr: true,
// target: 'static',
alias: { // Quita el error a instalar Nuxt
// pinia: "/node_modules/@pinia/nuxt/node_modules/pinia/dist/pinia.mjs"
},
imports: {
// Auto-import pinia stores defined in `~/stores`
dirs: ['stores', 'classes']
},
// Configuracion para debug
/*
build: {
extend(config, ctx) {
if (ctx.isDev) {
config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
}
}
},
*/
plugins: [
],
typescript: {
shim: false,
strict: true,
includeWorkspace: true,
typecheck: true
},
css: ['~/assets/css/styles.css'],
// css: ['~/assets/css/styles.css', 'vue-final-modal/style.css'],
// Para poder hacer los enlaces simbolicos, se aumenta los directorios
// para que vite los acepte
vite: {
resolve: {
preserveSymlinks: true,
},
server: {
fs: {
allow: ['/siavcom/desarrollo/desarrolloweb/Vue/web-ones/'],
},
},
},
modules: ['@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt', "@nuxt/image"],
pinia: {
autoImports: [
// automatically imports `defineStore`
'defineStore', // import { defineStore } from 'pinia'
'acceptHMRUpdate',
// ['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia'
],
},
/*
router: {
middleware: ['checkSession']
}
*/
/*
piniaPersistedstate: {
cookieOptions: {
sameSite: 'strict',
},
storage: 'localStorage' //storage: sets the storage used to persist by default ('localStorage', 'sessionStorage' or 'cookies').
}
*/
app: {
head: {
link: [
{ rel: 'icon', href: '/favicon.ico' },]
}
},
// Variables de entorno
runtimeConfig: {
// The private keys which are only available server-side
basculaServer: 'my-secret-key',
// Keys within public are also exposed client-side
public: {
bascula: ['19toto.freeddns.org:3010']
},
},
})