From 5bc3de1e0a22349ea4165f9b64637a329bf7cca8 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sun, 31 Oct 2021 00:21:42 +1300 Subject: [PATCH] Added Prod check to template function for meta URL --- client/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/template.js b/client/template.js index 400794c18..0c6e4deae 100644 --- a/client/template.js +++ b/client/template.js @@ -1,5 +1,5 @@ module.exports = async(name, title = '', props = {})=>{ - const HOMEBREWERY_PUBLIC_URL='https://homebrewery.naturalcrit.com'; + const HOMEBREWERY_PUBLIC_URL=(process.env.NODE_ENV == 'local' ? 'localhost:8000' : 'https://homebrewery.naturalcrit.com'); return `