Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
Thank you in advance for your patience and understanding on the matter.
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');
})();