homebox/frontend/nuxt.config.ts

52 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

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,
modules: ["@nuxtjs/tailwindcss", "@pinia/nuxt", "@vueuse/nuxt", "@vite-pwa/nuxt"],
nitro: {
devProxy: {
"/api": {
target: "http://localhost:7745/api",
changeOrigin: true,
},
2022-09-01 22:32:03 +00:00
},
},
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",
},
],
},
},
2022-09-01 22:32:03 +00:00
});