Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread: CentOS2Alma discussion
In-fact, its simplified as:
(() => import('./index.js'))();
This allows plesk to serve pages, but unclear if the swallowing of async is indicating to Plesk that the site is ready sooner than ideally. But it's working for me.
I had exactly the same issue, resolved by adding the following (as index.cjs) to my build output and pointing plesk at that (having created a package.json with "type": "module" in the build output too):
(async () => {
await import('./index.js');
})();