Skip to content

Commit

Permalink
fix: ⚙️ tweak for build
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneylab committed Oct 28, 2021
1 parent 82b6a03 commit 0931d2a
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 1 deletion.
31 changes: 31 additions & 0 deletions dist/src/lib/config/website.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const facebookPageName = import.meta.env ? import.meta.env.VITE_FACEBOOK_PAGE : '';
const facebookAuthorPageName = import.meta.env ? import.meta.env.VITE_FACEBOOK_AUTHOR_PAGE : '';

const website = {
author: 'Rodney Johnson',
entity: 'Rodney Lab',
ogLanguage: 'en_GB',
siteLanguage: 'en-GB',
siteTitle: 'SvelteKit Blog Mdx',
siteShortTitle: 'SvelteKit Blog',
siteUrl: import.meta.env ? import.meta.env.VITE_SITE_URL : '',
icon: 'static/icon.png',
backgroundColor: '#1b4079',
themeColor: '#d62828',
contactEmail: import.meta.env ? import.meta.env.VITE_CONTACT_EMAIL : '',
facebookAuthorPage: `https://www.facebook.com/${facebookAuthorPageName}`,
facebookAuthorPageName,
facebookPage: `https://www.facebook.com/${facebookPageName}`,
facebookPageName,
githubPage: import.meta.env ? import.meta.env.VITE_GITHUB_PAGE : '',
linkedinProfile: import.meta.env ? import.meta.env.VITE_LINKEDIN_PROFILE : '',
telegramUsername: import.meta.env ? import.meta.env.VITE_TELEGRAM_USERNAME : '',
tiktokUsername: import.meta.env ? import.meta.env.VITE_TIKTOK_USERNAME : '',
twitterUsername: import.meta.env ? import.meta.env.VITE_TWITTER_USERNAME : '',
twitterUserId: import.meta.env ? import.meta.env.VITE_TWITTER_ID : '',
wireUsername: import.meta.env ? import.meta.env.VITE_WIRE_USERNAME : '',
hcaptchaSitekey: import.meta.env ? import.meta.env.VITE_HCAPTCHA_SITEKEY : '',
workerUrl: import.meta.env ? import.meta.env.VITE_WORKER_URL : '',
};

export { website as default };
2 changes: 1 addition & 1 deletion generate-manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import path from 'path';
import sharp from 'sharp';
import website from './src/lib/config/website.js';
import website from './dist/src/lib/config/website.js';

const __dirname = path.resolve();
const iconsDirectory = path.join(__dirname, 'static/icons');
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"svelte-feather-icons": "^3.5.0",
"svelte-preprocess": "^4.9.8",
"svelte-preprocess-import-assets": "^0.1.3",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typescript": "^4.4.4",
"vanilla-lazyload": "^17.5.0",
Expand Down
86 changes: 86 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0931d2a

Please sign in to comment.