fix: correct fetched releases variable in version check and update dev script for debugging

pull/12372/head
twwu 1 year ago
parent 40d025052d
commit e3b8926aef

@ -55,7 +55,7 @@ const Action: FC<Props> = ({
const handleFetchNewVersion = async () => { const handleFetchNewVersion = async () => {
const fetchedReleases = await fetchReleases(author, pluginName) const fetchedReleases = await fetchReleases(author, pluginName)
if (fetchReleases.length === 0) return if (fetchedReleases.length === 0) return
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version) const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
Toast.notify(toastProps) Toast.notify(toastProps)
if (needUpdate) { if (needUpdate) {

@ -6,7 +6,7 @@
"node": ">=18.17.0" "node": ">=18.17.0"
}, },
"scripts": { "scripts": {
"dev": "next dev", "dev": "NODE_OPTIONS='--inspect' next dev",
"build": "next build", "build": "next build",
"start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js", "start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js",
"lint": "next lint", "lint": "next lint",
@ -190,4 +190,4 @@
"eslint --fix" "eslint --fix"
] ]
} }
} }
Loading…
Cancel
Save