Skip to content

Commit

Permalink
feat: dynamic domain
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Nov 16, 2023
1 parent c6e7be3 commit 1e27d77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _data/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ const multiline = text => text.trim().replace(/^[ \t]+/gm, '');

module.exports = function () {
const email = 'trebledjjj@gmail.com';
const domain = {
production: 'trebledj.me',
preview: 'preview.trebledj.pages.dev',
}[process.env.DOMAIN_ENVIRONMENT || 'production'];

return {
title: "TrebledJ's Pages",
subtitle: 'Dabbling in code, music, math, and memes since conception.',
url: 'https://trebledj.me',
url: `https://${domain}`,
baseurl: '',
language: 'en',
description: "TrebledJ's personal blog on programming, music, and memes.",
Expand Down

0 comments on commit 1e27d77

Please sign in to comment.