aboutsummaryrefslogtreecommitdiffstats
path: root/nuxt.config.ts
blob: 2e08cd17cc37b20917a78eb6492607e5ec6d827a (plain)
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  ssr: false,
  css: ['~/assets/css/main.css'],

  runtimeConfig: {
    public: {
      baseURL: process.env.BASE_URL || '/api',
    },
  },

  vite: {
    server: {
      proxy: {
        '/api': {
          target: 'http://localhost:4000',
          changeOrigin: true,
          rewrite: (path) => path.replace(/^\/api/, '')
        }
      },
    }
  },

  modules: ['@pinia/nuxt'],
})