2022-12-10 05:57:57 +00:00
|
|
|
import { defineNuxtConfig } from "nuxt/config";
|
2022-09-01 22:32:03 +00:00
|
|
|
|
|
|
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
ssr: false,
|
2023-08-02 21:00:57 +00:00
|
|
|
modules: ["@nuxtjs/tailwindcss", "@pinia/nuxt", "@vueuse/nuxt", "@vite-pwa/nuxt", "./nuxt.proxyoverride.ts"],
|
2022-12-10 05:57:57 +00:00
|
|
|
nitro: {
|
|
|
|
devProxy: {
|
|
|
|
"/api": {
|
|
|
|
target: "http://localhost:7745/api",
|
2023-08-02 21:00:57 +00:00
|
|
|
ws: true,
|
2022-12-10 05:57:57 +00:00
|
|
|
changeOrigin: true,
|
2022-12-30 01:19:15 +00:00
|
|
|
},
|
2022-09-01 22:32:03 +00:00
|
|
|
},
|
|
|
|
},
|
2022-12-30 01:19:15 +00:00
|
|
|
css: ["@/assets/css/main.css"],
|
2023-03-23 18:27:12 +00:00
|
|
|
pwa: {
|
|
|
|
injectRegister: "script",
|
|
|
|
injectManifest: {
|
|
|
|
swSrc: "sw.js",
|
|
|
|
},
|
|
|
|
devOptions: {
|
|
|
|
// Enable to troubleshoot during development
|
2023-03-25 19:07:22 +00:00
|
|
|
enabled: false,
|
2023-03-23 18:27:12 +00:00
|
|
|
},
|
|
|
|
manifest: {
|
|
|
|
name: "Homebox",
|
|
|
|
short_name: "Homebox",
|
|
|
|
description: "Home Inventory App",
|
|
|
|
theme_color: "#5b7f67",
|
|
|
|
start_url: "/home",
|
|
|
|
icons: [
|
|
|
|
{
|
|
|
|
src: "pwa-192x192.png",
|
|
|
|
sizes: "192x192",
|
|
|
|
type: "image/png",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: "pwa-512x512.png",
|
|
|
|
sizes: "512x512",
|
|
|
|
type: "image/png",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: "pwa-512x512.png",
|
|
|
|
sizes: "512x512",
|
|
|
|
type: "image/png",
|
|
|
|
purpose: "any maskable",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2022-09-01 22:32:03 +00:00
|
|
|
});
|