Closed JeDaYoshi closed 4 years ago
We'd need to add later documentation so people know how to do the invite thing if they want to use a static-generated site, but it's something pretty simple and common. No extra steps to do when running Nuxt.js built-in server, though.
This changes how
@cryb/web
rendering works. As of now, it has been done using Server-Side Rendering, and since we have seen that switching to Single Page Application rendering won't hurt but more than enhance things performance-side and preventing some issues, while even allowing to host this as a static page, this will be the default from now on.@cryb/borealis
[which is more likely to be safe to do since styles are pre-fetched] and fix centering when on mobile.)/
if it can't (as it was doing before, but now reworked to not repeat code)mode: 'spa'
line innuxt.config.js
to enable it back (possibly making this configurable in the future?)yarn generate
to generate a static site, which works completely (Note: Requires rewriting rules for invites to work so it fetches/i/index.html
, since those are dynamic and will 404)Plus this, includes a few changes that I was doing before:
/
, which is the only one that needs to be indexed)Seems to work fineForgot to fix this, but other than that it works, but extra testing is appreciated.I'm also thinking of changing some other things, but that'd be for later changes.