-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
105 lines (103 loc) · 3.19 KB
/
Copy pathnuxt.config.ts
File metadata and controls
105 lines (103 loc) · 3.19 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@bootstrap-vue-next/nuxt',
'@nuxt/eslint',
'@nuxtjs/google-fonts',
'@sentry/nuxt/module',
],
googleFonts: {
families: {
'Open Sans': [300, 400, 500, 600, 700],
Montserrat: [300, 400, 500, 600, 700],
},
display: 'swap',
download: true,
},
ssr: false,
devtools: { enabled: true },
app: {
head: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
link: [
{ rel: 'stylesheet', href: 'https://material-icons.github.io/material-icons-font/css/outline.css' },
{ rel: 'stylesheet', href: 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css' },
],
script: [
{ src: 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.js' },
],
},
pageTransition: { name: 'page', mode: 'out-in' },
},
css: [
'~/assets/scss/main.scss',
],
sourcemap: { client: 'hidden' },
compatibilityDate: '2024-10-24',
nitro: {
// deal with CORS issues during development
devProxy: {
// use these values when you want to use the existing dev backend
'/api': 'https://api.workspaces-dev.sidewalks.washington.edu/api/',
'/workspaces': 'https://osm.workspaces-dev.sidewalks.washington.edu/workspaces/',
// use these values when running the backend locally, e.g. the repo workspaces-backend
// '/api': 'http://localhost:8000/api/',
// '/workspaces': 'http://localhost:8000/workspaces/',
},
},
eslint: {
config: {
stylistic: true,
},
},
sentry: {
org: 'taskar-center-at-uw',
project: 'workspaces-frontend',
authToken: process.env.VITE_SENTRY_AUTH_TOKEN,
debug: (process.env.ENV === 'dev' || process.env.ENV === 'local'),
environment: process.env.ENV || 'unknown',
},
vite: {
server: {
allowedHosts: [
'workspaces.local',
],
},
optimizeDeps: {
// Pre-bundle these dependencies to avoid reloads during development:
include: [
'@osmcha/maplibre-adiff-viewer',
'@osmcha/osmchange-parser',
'@sindresorhus/slugify',
'@vue/devtools-core',
'@vue/devtools-kit',
'@zip.js/zip.js',
'ajv', // CJS
'ajv-formats', // CJS
'bootstrap-vue-next',
'bootstrap-vue-next/components/BAlert',
'bootstrap-vue-next/components/BApp',
'bootstrap-vue-next/components/BBadge',
'bootstrap-vue-next/components/BButton',
'bootstrap-vue-next/components/BCard',
'bootstrap-vue-next/components/BCollapse',
'bootstrap-vue-next/components/BContainer',
'bootstrap-vue-next/components/BDropdown',
'bootstrap-vue-next/components/BFormInput',
'bootstrap-vue-next/components/BListGroup',
'bootstrap-vue-next/components/BModal',
'bootstrap-vue-next/components/BNavbar',
'bootstrap-vue-next/components/BPopover',
'bootstrap-vue-next/composables/useModal',
'dayjs', // CJS
'dayjs/plugin/relativeTime', // CJS
'maplibre-gl', // CJS
'papaparse', // CJS
'vue-qrcode',
'vue3-toastify',
],
},
},
});