diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2025-01-20 13:22:57 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2025-01-20 13:22:57 +0000 |
| commit | 38f49e94cfe2a0340a30919a8ce02f40cef31706 (patch) | |
| tree | cb02cb16cc9b29d01e9125566556bc1d0b50c2f3 /nuxt.config.ts | |
| parent | e8f15e5a9e329bfc519cd8a271f3ed6ab6835646 (diff) | |
PWA-ify
Diffstat (limited to 'nuxt.config.ts')
| -rw-r--r-- | nuxt.config.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/nuxt.config.ts b/nuxt.config.ts index 2e08cd1..724f521 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,27 +1,27 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - compatibilityDate: '2024-11-01', + compatibilityDate: "2024-11-01", devtools: { enabled: true }, ssr: false, - css: ['~/assets/css/main.css'], + css: ["~/assets/css/main.css"], runtimeConfig: { public: { - baseURL: process.env.BASE_URL || '/api', + baseURL: process.env.BASE_URL || "/api", }, }, vite: { server: { proxy: { - '/api': { - target: 'http://localhost:4000', + "/api": { + target: "http://localhost:4000", changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, '') - } + rewrite: (path) => path.replace(/^\/api/, ""), + }, }, - } + }, }, - - modules: ['@pinia/nuxt'], -})
\ No newline at end of file + + modules: ["@pinia/nuxt", "@vite-pwa/nuxt"], +});
\ No newline at end of file |
