mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-25 01:55:43 +00:00
2cbcc8bb1d
* rough implementation of WS based event system for server side notifications of mutation * fix test construction * fix deadlock on event bus * disable linter error * add item mutation events * remove old event bus code * refactor event system to use composables * refresh items table when new item is added * fix create form errors * cleanup unnecessary calls * fix importer erorrs + limit fn calls on import
52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
import { defineNuxtConfig } from "nuxt/config";
|
|
|
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
export default defineNuxtConfig({
|
|
ssr: false,
|
|
modules: ["@nuxtjs/tailwindcss", "@pinia/nuxt", "@vueuse/nuxt", "@vite-pwa/nuxt", "./nuxt.proxyoverride.ts"],
|
|
nitro: {
|
|
devProxy: {
|
|
"/api": {
|
|
target: "http://localhost:7745/api",
|
|
ws: true,
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
css: ["@/assets/css/main.css"],
|
|
pwa: {
|
|
injectRegister: "script",
|
|
injectManifest: {
|
|
swSrc: "sw.js",
|
|
},
|
|
devOptions: {
|
|
// Enable to troubleshoot during development
|
|
enabled: false,
|
|
},
|
|
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",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
});
|