Skip to content

Commit

Permalink
chore: disable pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
ourongxing committed Oct 24, 2024
1 parent 4a3c9f5 commit 2e0f332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/api/login.ts
Original file line number Diff line number Diff line change
@@ -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}`)
})
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -106,7 +106,7 @@ export default defineConfig({
}),
unocss(),
react(),
VitePWA(pwaOption),
// VitePWA(pwaOption),
nitro(nitroOption),
],
})

0 comments on commit 2e0f332

Please sign in to comment.