Hey there. I was currently wondering how I could set my main file as a .js file, as I am creating an application which uses a .js file as the main one.
If you mean
.js file instead of
index.html, no, you can’t. Netlify needs an
index.html to serve in each folder or it will throw a Not Found error. You can probably try using redirect, but, I’m not very sure if that will work.
HI, @therealkingnull. This should answer your question:
So basically, I can’t run an express server as my main file?
Yes, you can’t. Only static files.
Ah, thank you for your help.