aframevr / a-blast

💥 Save the World From the Cutest Creatures in the Universe!
https://aframe.io/a-blast/
MIT License
128 stars 66 forks source link

game works on aframe.io but not local network #133

Closed hananbeer closed 3 years ago

hananbeer commented 3 years ago

actually the game seems to work, I just can't enter VR mode in the browser when serving from my computer. how can I debug this? (Oculus Quest 2)

hananbeer commented 3 years ago

figured it out. needed to serve over https. (at least in FireFox on Quest 2)

edited webpack.config.js to add the following:

  devServer: {
    disableHostCheck: true,
    https: {
      key: fs.readFileSync('./tls/private.key'),
      cert: fs.readFileSync('./tls/certificate.crt'),
    }
  }

and simply ignored the self-sign warning for the sake of development.