• 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.

Search results

  1. S

    Question NodeJS - Execute ESM code

    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.
  2. S

    Question NodeJS - Execute ESM code

    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'); })();
Back
Top