mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
chore: disable pwa
This commit is contained in:
parent
4a3c9f586a
commit
2e0f332288
@ -1,5 +1,5 @@
|
|||||||
import process from "node:process"
|
import process from "node:process"
|
||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
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}`)
|
||||||
})
|
})
|
||||||
|
@ -8,14 +8,14 @@ import tsconfigPath from "vite-tsconfig-paths"
|
|||||||
import unocss from "unocss/vite"
|
import unocss from "unocss/vite"
|
||||||
import dotenv from "dotenv"
|
import dotenv from "dotenv"
|
||||||
import type { VitePWAOptions } from "vite-plugin-pwa"
|
import type { VitePWAOptions } from "vite-plugin-pwa"
|
||||||
import { VitePWA } from "vite-plugin-pwa"
|
// import { VitePWA } from "vite-plugin-pwa"
|
||||||
import { projectDir } from "./shared/dir"
|
import { projectDir } from "./shared/dir"
|
||||||
|
|
||||||
dotenv.config({
|
dotenv.config({
|
||||||
path: join(projectDir, ".env.server"),
|
path: join(projectDir, ".env.server"),
|
||||||
})
|
})
|
||||||
|
|
||||||
const pwaOption: Partial<VitePWAOptions> = {
|
const _pwaOption: Partial<VitePWAOptions> = {
|
||||||
includeAssets: ["icon.svg", "apple-touch-icon.png"],
|
includeAssets: ["icon.svg", "apple-touch-icon.png"],
|
||||||
manifest: {
|
manifest: {
|
||||||
name: "NewsNow",
|
name: "NewsNow",
|
||||||
@ -106,7 +106,7 @@ export default defineConfig({
|
|||||||
}),
|
}),
|
||||||
unocss(),
|
unocss(),
|
||||||
react(),
|
react(),
|
||||||
VitePWA(pwaOption),
|
// VitePWA(pwaOption),
|
||||||
nitro(nitroOption),
|
nitro(nitroOption),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user