nortski78
(Nortski78)
February 21, 2025, 11:24am
1
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.
system
(system)
February 21, 2025, 11:24am
2
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.
Sometimes things don’t go as expected when deploying a website. If you see a 404 on your site, that means the page or resource couldn’t be found.
There are many possible causes, and the absence of something can be tricky debug if you don’t know where to look. Here are some things you can do to find the cause and fix it.
Debugging Tips
Check the error code
If you see a mostly white screen with 404: NOT_FOUND along with a Code and and ID then you can click the blue info box below the error deta…
A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0 .