We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d301ff6 commit 7e29b0cCopy full SHA for 7e29b0c
server/plugins/0.update-checker.ts
@@ -1,6 +1,10 @@
1
import currentPackage from '~/package.json'
2
3
export default defineNitroPlugin(async () => {
4
+ if (['prerender', 'development'].includes(process.env.NODE_ENV || '')) {
5
+ return
6
+ }
7
+
8
try {
9
const latestPackage = await $fetch<typeof currentPackage>('https://raw.githubusercontent.com/hywax/mafl/main/package.json', {
10
parseResponse: (json) => JSON.parse(json)
0 commit comments