godwareauth.netlify.app/
im new to node.js and backend stuff, im trying to make an authentication thing, so it gives you a random key, well no log ins there, thats because its for a roblox game, when i run ‘netlify deploy --prod’ in my terminal, it builds succesfully, but the api code doesnt update, i have old api code on there, it returns a json, and its not supposed to do that, like if the api code just doesnt updated and the old one stayed there
Run netlify deploy --build --prod
well that did something, but now i cant access the index.html, its not found, neither the api works
i managed to get it working back, i just had to run netlify deploy --prod again
Looks like you’re trying to use Express. Not sure what the file in functions/api.js
is for. Ideally your netlify.toml
should be:
[build]
command = "npm -v"
publish = "dist"
[functions]
directory = "src"
But you’ve got a weird setup. Looks like you’e trying to use Express to serve static files? Not sure why. Netlify already serves static files for you.
I’ve could not gather any idea what you’re trying to achive based on your setup. The get_key.js
file in your Functions folder also seems to be handling some HTML? I’m very confused.
get_key.js isnt even in my src anymore, i watched a tutorial on how to set it up so i have no idea what iam doing
I’d recommend having a clear idea about what you’re trying to achieve so you can ask for help with that exact thing and others can advise accordingly.