JS file won't execute

I have uploaded a site, but the .js file won’t execute. The path for the file is ./assets/js/index.js; it is pulling from a Github repo. The contents are:

const handler = async () => {
  return {
    statusCode: 200,
    headers: { "Content-Type": "text/plain" },
    body: "paul".toUpperCase(),
  };
};

module.exports = { handler };

Any idea why the JS isn’t executing?

Thank you!

  1. Your topic doesn’t belong in the Admin category. It belongs in the Support category.
  2. Does this code work for you locally?

@pmdenlinger Separate from @dig’s notes, if that file is intended to form part of a “server response” see: