-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
43 lines (42 loc) · 1.09 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
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
typescript: {
strict: true
},
css: [
'@fortawesome/fontawesome-svg-core/styles.css'
],
meta: {
meta: [
{ charset: 'utf-8' }
],
link: [
{
rel: 'stylesheet',
type: 'text/css',
href: 'http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900italic,900'
}
]
},
transpile: [
'@fortawesome/vue-fontawesome',
'@fortawesome/fontawesome-svg-core',
'@fortawesome/free-regular-svg-icons',
'@fortawesome/free-solid-svg-icons'
],
runtimeConfig: {
public: {
apiBase: 'http://localhost:6969'
}
},
ssr: true
// proxying currently dosent work in nuxt 3 (on server-side rendering, with vite-proxy it works on web browser)
// vite: {
// server: {
// proxy: {
// '/api': { target: 'http://localhost:6969', rewrite: path => path.replace(/^\/api/, ''), changeOrigin: true }
// }
// }
// }
})