diff options
Diffstat (limited to 'nuxt.config.ts')
| -rw-r--r-- | nuxt.config.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nuxt.config.ts b/nuxt.config.ts new file mode 100644 index 0000000..2e08cd1 --- /dev/null +++ b/nuxt.config.ts @@ -0,0 +1,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'], +})
\ No newline at end of file |
