-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
122 lines (98 loc) · 3.46 KB
/
nuxt.config.js
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
export default {
target : "server",
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: "LaBrujula.Tk",
htmlAttrs: {
lang: "en",
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "Valparaiso, murales, escaleras, ascensores, street art, cerro alegre, cerro concepción." },
{ name: 'keywords', content: 'Valparaíso, murales, street art, ascensor artilleria, ascensores, cerro concepción, cerro alegre' },
{ name: "format-detection", content: "telephone=no" },
{ name: "google-site-verification", content:"xUKYs86x5b6yPL3Qt4L1nvryTq-lQTSNySC15vh8rJA"}
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon-16x16.png" },
{ rel: 'canonical', href: 'labrujula.tk' },
{
rel: "stylesheet",
href: "https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.css",
},
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css',
},
{ rel: 'stylesheet', href: 'https://unpkg.com/[email protected]/dist/leaflet.css' },
],
script: [
{src: "https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js", },
{src: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.js", },
{ src: 'https://unpkg.com/[email protected]/dist/leaflet.js', type: 'text/javascript' },
{ src: 'https://unpkg.com/[email protected]/dist/leaflet-routing-machine.js', type: 'text/javascript' },
],
},
env: {
googleAnalyticsId: process.env.GOOGLE_ANALYTICS_ID
},
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: "@/plugins/vue-infinite-loading", mode: "client" },
{ src: "@/plugins/v-viewer", mode: "client" },
{ src: "@/plugins/leaflet.js", mode: "client", srr: false },
{ src: '@/plugins/ga.js', mode: 'client'},
{ src: '@/plugins/leaflet-routing-machine.js', mode: 'client', ssr: false },
],
router: {
mode: 'history',
extendRoutes(routes, resolve) {
routes.push(
{
name: 'gps-details',
path: '/:lat/:lon',
component: resolve(__dirname, 'components/osm.vue'),
validate: {
lat: /^\d+(\.\d+)?$/,
lon: /^\d+(\.\d+)?$/
}
},
{
name: 'gps',
path: '/gps',
component: resolve(__dirname, 'pages/gps.vue')
}
);
}
},
routes: [],
// Global CSS: https://go.nuxtjs.dev/config-css
css: ["leaflet/dist/leaflet.css"],
components: true,
buildModules: [
// https://go.nuxtjs.dev/tailwindcss
"@nuxtjs/tailwindcss",
"@nuxtjs/google-analytics",
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
"@nuxtjs/axios",
"nuxt-leaflet",
],
geolocation: {
watch: true,
},
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: "https://elpionerodv.cl",
// baseURL: 'http://127.0.0.1:8000'
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
env: {
baseURL: process.env.BASE_URL || "https://elpionerodv.cl",
// baseURL: process.env.BASE_URL || 'http://127.0.0.1:8000'
},
};