Vercel can't find my index.js

Moving from Adaptable to Vercel but I am having trouble deploying my simple node app.
After jumping through a few hoops I have it recognising the ejs view engine but it can not find my index.js that is located in the public folder.

In my index.ejs file I have tried different variations of the script source link:

<script src="/public/index.js" type="module" defer></script>
<script src="index.js" type="module" defer></script>
<script src="../public/index.js" type="module" defer></script>

None work, I keep getting a 404 error.
Any advice would be greatly appreciated.

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.