diff --git a/src/.vuepress/theme/layouts/Layout.vue b/src/.vuepress/theme/layouts/Layout.vue index 88dd1587..abac24bc 100644 --- a/src/.vuepress/theme/layouts/Layout.vue +++ b/src/.vuepress/theme/layouts/Layout.vue @@ -10,6 +10,9 @@ export default { name: 'Layout', beforeCreate() { + if (!process.browser) { + return; + } // redirect blog.ipfs.io → blog.ipfs.tech (incl. gateways) // https://github.com/ipfs/ipfs-blog/issues/417 const { href } = window.location