0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Added Prod check to template function for meta URL

This commit is contained in:
G.Ambatte
2021-10-31 00:21:42 +13:00
parent bd5f3c74e7
commit 5bc3de1e0a

View File

@@ -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 `
<!DOCTYPE html>
<html>