Gatsby Failed Build – error “window” is not available during server side rendering

When dealing with third-party modules that use window in Gatsby you need to add a null loader to its own webpack configuration to avoid the transpilation during the SSR (Server-Side Rendering). This is because gatsby develop occurs in the browser (where there is a window) while gatsby build occurs in the Node server where obviously … Read more

What’s the real difference between target: ‘static’ and target: ‘server’ in Nuxt 2.14 universal mode?

Update: According to the latest documentation, mode: ‘universal’ and mode: ‘spa’ were deprecated in favor of ssr: true and ssr: false. Full static works only with target: ‘static’ and ssr: true (counterpart of deprecated mode: ‘universal’). The ssr: true is a default value. The ssr: false is a counterpart of the deprecated mode: ‘spa’ and … Read more