-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
36 lines (35 loc) · 954 Bytes
/
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
import vuetify from 'vite-plugin-vuetify';
export default defineNuxtConfig({
ssr: false,
components: true,
css: [
"vuetify/lib/styles/main.sass",
"@mdi/font/css/materialdesignicons.min.css",
],
build: {
transpile: ['vuetify'],
},
runtimeConfig: {
public: {
API_BASE_URL: process.env.API_BASE_URL
}
},
nitro: {
devProxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
prependPath: false,
}
}
},
modules: [
async (options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) =>
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore TODO try to delete this ts-ignore after vuetify will be stable
config.plugins.push(vuetify())
);
}
],
});