Open 0perationPrivacy opened 3 years ago
Related, but when adding a custom 'APPDIRECTORY' environment variable, it just keeps returning 404?
Related, but when adding a custom 'APPDIRECTORY' environment variable, it just keeps returning 404?
This issue is almost always because of caching. I faced it as well. Try a different browser, incognito mode and enter the URL with the sub-directory. Without the sub-directory in the path, it will always give a 404 when that variable is configured.
When you set the variable in Heroku, wait 30 seconds, then try the new URI in a clean browser. Let me know if that worked.
With the random/custom directory path, the function on mobile to Add to Home Screen does not add the directory as it's statically definded in the manifest file. This gives an error when you open the PWA as it's not taking into account your custom directory.
ref: https://technowhisp.com/dynamic-pwa-manifest/