2.0 KiB
title |
---|
PWA vs no-PWA |
About Selfhosting PWA
So that clients can have a more native app-like experience on mobile, movie-web has a function to support Progessive Web Apps (PWA). You can learn more about what a PWA is here.
In movie-web version 3, PWAs were enabled by default. Unfortunately, PWAs tend to come with caching complications that can be tricky to resolve. That's why we have disabled PWAs by default in movie-web version 4. If you are upgrading from version 3, please read our upgrade guide for more information.
::alert{type="warning"} Enabling PWAs means that you cannot disable it again - Please only proceed if you know what you are doing! ::
If you are running movie-web on a hoster such as Vercel
If your hosting is building movie-web from the source, you can enable PWAs using environment variables. The full environment variable reference can be found here but for PWAs we are only interested in VITE_PWA_ENABLED
.
Setting VITE_PWA_ENABLED
to true
will generate a service worker file and a web app manifest which enable the website to be installed from a web browser both on Desktop and on Mobile.
If you are running movie-web using the .zip files
If you are downloading the movie-web zip
files from our GitHub and installing them on a static website hoster, then all you need to do is to make sure to download the movie-web.pwa.zip
file instead of the movie-web.zip
file!