disable PWA
This commit is contained in:
parent
1da62476e4
commit
fa47ec2e45
@ -6,8 +6,7 @@ import { meta } from "./constants";
|
|||||||
import { pwa } from "./pwa";
|
import { pwa } from "./pwa";
|
||||||
import { generateMeta } from "./hooks/meta";
|
import { generateMeta } from "./hooks/meta";
|
||||||
|
|
||||||
export default withPwa(
|
export default defineConfig({
|
||||||
defineConfig({
|
|
||||||
title: "FMHY",
|
title: "FMHY",
|
||||||
description: meta.description,
|
description: meta.description,
|
||||||
titleTemplate: ":title • freemediaheckyeah",
|
titleTemplate: ":title • freemediaheckyeah",
|
||||||
@ -32,24 +31,6 @@ export default withPwa(
|
|||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
["meta", { name: "keywords", content: meta.keywords.join(" ") }],
|
["meta", { name: "keywords", content: meta.keywords.join(" ") }],
|
||||||
["link", { rel: "apple-touch-icon", href: "/test.png", sizes: "192x192" }],
|
["link", { rel: "apple-touch-icon", href: "/test.png", sizes: "192x192" }],
|
||||||
|
|
||||||
// ["meta", { name: "theme-color", content: "#7bc5e4" }],
|
|
||||||
// ["meta", { name: "og:type", content: "website" }],
|
|
||||||
// ["meta", { name: "og:locale", content: "en" }],
|
|
||||||
// ["meta", { property: "og:type", content: "website" }],
|
|
||||||
// ["meta", { property: "og:title", content: meta.name }],
|
|
||||||
// ["link", { rel: "icon", href: "/fmhy.ico", sizes: "any" }],
|
|
||||||
// ["link", { rel: "icon", href: "/test.png", type: "image/svg+xml" }],
|
|
||||||
// ["link", { rel: "mask-icon", href: "/test.png", color: "#7bc5e4" }],
|
|
||||||
// // pwa
|
|
||||||
// ["link", { rel: "alternate icon", href: "/test.png" }],
|
|
||||||
// ["link", { rel: "apple-touch-icon", href: "/fmhy.png", sizes: "192x192" }],
|
|
||||||
// ["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" }],
|
|
||||||
// ["meta", { name: "keywords", content: meta.keywords.join(" ") }],
|
|
||||||
// ["meta", { name: "twitter:description", content: meta.description }],
|
|
||||||
// ["meta", { name: "twitter:title", content: meta.name }],
|
|
||||||
// ["meta", { name: "twitter:card", content: "summary_large_image" }],
|
|
||||||
// ["meta", { name: "twitter:site", content: meta.hostname }],
|
|
||||||
],
|
],
|
||||||
transformHead: async (context) => generateMeta(context, meta.hostname),
|
transformHead: async (context) => generateMeta(context, meta.hostname),
|
||||||
vite: {
|
vite: {
|
||||||
@ -68,10 +49,10 @@ export default withPwa(
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
// build: {
|
build: {
|
||||||
// // Shut the fuck up
|
// Shut the fuck up
|
||||||
// chunkSizeWarningLimit: Infinity,
|
chunkSizeWarningLimit: Infinity,
|
||||||
// },
|
},
|
||||||
},
|
},
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
search: {
|
search: {
|
||||||
@ -123,5 +104,4 @@ export default withPwa(
|
|||||||
],
|
],
|
||||||
...pwa,
|
...pwa,
|
||||||
},
|
},
|
||||||
}),
|
});
|
||||||
);
|
|
||||||
|
@ -45,7 +45,10 @@ async function handleSubmit(type?: string) {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch("https://fmhy.vercel.app/api/feedback", {
|
const response = await fetch("https://fmhy.vercel.app/api/feedback", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.parse(body),
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify(body),
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user