From 38f49e94cfe2a0340a30919a8ce02f40cef31706 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Mon, 20 Jan 2025 13:22:57 +0000 Subject: PWA-ify --- nuxt.config.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'nuxt.config.ts') 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 -- cgit v1.2.3-70-g09d2