-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
executable file
·86 lines (69 loc) · 1.68 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// Para encontrar errorres de hidratacion
debug: false,
devtools: { enabled: false },
devServer: {
host: 'localhost',
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'],
// Para poder hacer los enlaces simbolicos, se aumenta los directorios
// para que vite los acepte
vite: {
resolve: {
preserveSymlinks: true,
},
server: {
fs: { // Pewrmite el acceso a los archivos del servidor
allow: ['/siavcom/desarrollo/desarrolloweb/Vue/web-ones/'],
},
},
},
modules: ['@pinia/nuxt',
'pinia-plugin-persistedstate/nuxt',
"@nuxt/image"],
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: ['sample.freddns.org:3010'] //scale IP
},
},
compatibilityDate: '2024-10-02',
})