aboutsummaryrefslogtreecommitdiffstats
path: root/nuxt.config.ts
blob: 724f521e1bb55d9940d9a0d02a8876de4a7dabf5 (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", "@vite-pwa/nuxt"],
});