How to deploy automation on server side using headless browser

how to deploy automation on server side using headless browser