disable PWA
This commit is contained in:
parent
1da62476e4
commit
fa47ec2e45
@ -6,8 +6,7 @@ import { meta } from "./constants";
|
||||
import { pwa } from "./pwa";
|
||||
import { generateMeta } from "./hooks/meta";
|
||||
|
||||
export default withPwa(
|
||||
defineConfig({
|
||||
export default defineConfig({
|
||||
title: "FMHY",
|
||||
description: meta.description,
|
||||
titleTemplate: ":title • freemediaheckyeah",
|
||||
@ -32,24 +31,6 @@ export default withPwa(
|
||||
// prettier-ignore
|
||||
["meta", { name: "keywords", content: meta.keywords.join(" ") }],
|
||||
["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),
|
||||
vite: {
|
||||
@ -68,10 +49,10 @@ export default withPwa(
|
||||
],
|
||||
}),
|
||||
],
|
||||
// build: {
|
||||
// // Shut the fuck up
|
||||
// chunkSizeWarningLimit: Infinity,
|
||||
// },
|
||||
build: {
|
||||
// Shut the fuck up
|
||||
chunkSizeWarningLimit: Infinity,
|
||||
},
|
||||
},
|
||||
themeConfig: {
|
||||
search: {
|
||||
@ -123,5 +104,4 @@ export default withPwa(
|
||||
],
|
||||
...pwa,
|
||||
},
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
@ -45,7 +45,10 @@ async function handleSubmit(type?: string) {
|
||||
try {
|
||||
const response = await fetch("https://fmhy.vercel.app/api/feedback", {
|
||||
method: "POST",
|
||||
body: JSON.parse(body),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
|
||||
const data = await response.json();
|
||||
|
Loading…
Reference in New Issue
Block a user