chore: disable pwa

This commit is contained in:
Ou 2024-10-24 21:15:03 +08:00
parent 4a3c9f586a
commit 2e0f332288
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import process from "node:process"
export default defineEventHandler(async (event) => {
return sendRedirect(event, `https://github.com/login/oauth/authorize?client_id=${process.env.G_CLIENT_ID}`)
sendRedirect(event, `https://github.com/login/oauth/authorize?client_id=${process.env.G_CLIENT_ID}`)
})

View File

@ -8,14 +8,14 @@ import tsconfigPath from "vite-tsconfig-paths"
import unocss from "unocss/vite"
import dotenv from "dotenv"
import type { VitePWAOptions } from "vite-plugin-pwa"
import { VitePWA } from "vite-plugin-pwa"
// import { VitePWA } from "vite-plugin-pwa"
import { projectDir } from "./shared/dir"
dotenv.config({
path: join(projectDir, ".env.server"),
})
const pwaOption: Partial<VitePWAOptions> = {
const _pwaOption: Partial<VitePWAOptions> = {
includeAssets: ["icon.svg", "apple-touch-icon.png"],
manifest: {
name: "NewsNow",
@ -106,7 +106,7 @@ export default defineConfig({
}),
unocss(),
react(),
VitePWA(pwaOption),
// VitePWA(pwaOption),
nitro(nitroOption),
],
})