mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
fix(stork): support netlify ubuntu 24 builds
Switch Stork downloads to artifacts that match current runtimes and fix the runtime detection path that Node 22 changed. This keeps the existing Stork pipeline working on Netlify's Noble image and on Apple Silicon development machines.
This commit is contained in:
parent
e701c48fa8
commit
9e48862a5f
3 changed files with 31 additions and 18 deletions
|
|
@ -6,7 +6,10 @@ export function isNuxt( VueThis ) {
|
|||
}
|
||||
|
||||
export function isBrowserContext () {
|
||||
if ( typeof navigator === 'undefined' ) return false
|
||||
// Node 22 exposes a global navigator, so use window/document instead.
|
||||
if ( typeof window === 'undefined' ) return false
|
||||
|
||||
if ( typeof document === 'undefined' ) return false
|
||||
|
||||
return true
|
||||
}
|
||||
|
|
@ -14,6 +17,8 @@ export function isBrowserContext () {
|
|||
export function hasProcesGlobal () {
|
||||
if ( typeof process === 'undefined' ) return false
|
||||
|
||||
if ( !process.versions?.node ) return false
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue