It looks like Vuepress is made for public docs, but we decided to add client and server security to protect some of the doc pages. But unfortunately although oidc-client (https://github.com/IdentityModel/oidc-client-js/wiki) works during dev, it throws exception when build.
I get ReferenceError: window is not defined
and when I try to trick the compiler with const window = window || { location: {} };
I get TypeError: Cannot read property 'getItem' of undefined
Any idea how to make this work?