vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.84k stars 1.18k forks source link

fix: check with document for browser instead of window #2042

Closed ydcjeff closed 9 months ago

ydcjeff commented 9 months ago

Deno has global window object. Thus, when trying to deploy a typical Vue SSR project, the server output fails to run.

So, replaced the browser check with document instead. VitePress is also doing the same.

netlify[bot] commented 9 months ago

Deploy Preview for vue-router canceled.

Name Link
Latest commit 9accc4e6b6711aa692edcbc6697f518be04a5692
Latest deploy log https://app.netlify.com/sites/vue-router/deploys/65561b5cedecfc0008947674