How To Redirect Add To Cart Button To Checkout in Shopify Dawn Theme

How To Redirect Add To Cart Button To Checkout in Shopify Dawn Theme

Online Store > Themes > Assets > product-form.js 

change > window.routes.cart_url 

to

'/checkout/'