Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
fix(manifest): move server handler to runtime
Browse files Browse the repository at this point in the history
Closes #22
  • Loading branch information
kevinmarrec committed Jul 22, 2022
1 parent 082ac5e commit 73ee968
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@
},
"build": {
"externals": [
"node:child_process",
"node:fs",
"consola",
"pathe"
"pathe",
"ufo"
]
},
"packageManager": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/parts/manifest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (pwa: PWAContext) => {

addServerHandler({
route: '/manifest.json',
handler: pwa._resolver.resolve('./parts/manifest/handler')
handler: pwa._resolver.resolve('./runtime/server/manifest')
})

pwa._manifestMeta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineEventHandler } from 'h3'
import { useRuntimeConfig } from '#imports'

export default defineEventHandler(() => {
const { pwaManifest } = useRuntimeConfig()
Expand Down

0 comments on commit 73ee968

Please sign in to comment.