How to deploy express app, without frontend and without overriding the frontend files

command = “npm run build”
functions = “netlify/functions/”
publish = “build”

external_node_modules = [“express”]
node_bundler = “esbuild”

I am trying to deploy functions using the content give above for the netlify.yml file. But when I am deploying the functions separately, the frontend app which is deployed separately is getting overriden.

Kindly help.

Thanks for reaching out! Would you be able to provide the names of the site(s) this is in reference to? Can you also clarify what you mean here:

Looking forward to hearing from you!

This has been solved, but we are getting another issue: Netlify deploy, process cancelled with exit code 130