Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 1.16 KB

how-to-deploy.md

File metadata and controls

40 lines (21 loc) · 1.16 KB

How to Deploy

  • Goto CloudFlare Dashboard and sign up/in. If you are new to CloudFlare, it may ask you to add a domain. If you don't want to add a domain, just open the above link again.

  • On the Dashboard goto "Workers & Pages" and verify your email if needed.

    image

  • You will be asked to create a Workers subdomain. Enter the subdomain you want.

  • Click on "Create application" or Edit if you have already created one.

    image

  • Click on "Create Worker" to proceed.

    image

  • Click on "Deploy".

    image

  • Click on "Edit code".

    image

  • Erase all the code given in the code editor.

    image

  • Copy the code from index.js and paste into the code editor.

  • Ensure that you have pasted the code correctly and click on "Save and deploy" and confirm the deployment.

    image

  • Click on "Preview" tab to see the final worker URL.

    image

  • Copy the final URL and use it wherever you want.