Merge pull request #213 from bartvdbraak/fix/url-seo-config

Update site configuration and Vite environment variables
This commit is contained in:
Bart van der Braak 2024-01-22 13:28:09 +01:00 committed by GitHub
commit ba2ce8c8a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -1,14 +1,17 @@
const SITE_URL =
import.meta.env.VERCEL_ENV === 'preview' ? import.meta.env.VERCEL_URL : 'https://hellob.art';
export const siteConfig = {
name: 'hellob.art',
author: 'Bart van der Braak',
url: import.meta.env.VERCEL_URL,
ogImage: `https://${import.meta.env.VERCEL_URL}/og.png`,
url: SITE_URL,
description: 'Personal website of Bart van der Braak, DevOps/Platform Engineer at Triple.',
ogImage: `https://${SITE_URL}/og.png`,
links: {
twitter: 'https://twitter.com/bartvdbraak',
linkedIn: 'https://www.linkedin.com/in/bartvdbraak',
gitHubProfile: 'https://github.com/bartvdbraak',
gitHubProject: 'https://github.com/bartvdbraak',
gitHubProject: 'https://github.com/bartvdbraak/hellob.art',
shadcnSvelte: 'https://www.shadcn-svelte.com/',
vercel: 'https://vercel.com/'
},

View file

@ -6,7 +6,8 @@ import fs from 'fs';
export default defineConfig({
plugins: [base64(), enhancedImages(), rawFonts(['.woff']), sveltekit()],
define: {
'import.meta.env.VERCEL_URL': JSON.stringify(process.env.VERCEL_URL)
'import.meta.env.VERCEL_URL': JSON.stringify(process.env.VERCEL_URL),
'import.meta.env.VERCEL_ENV': JSON.stringify(process.env.VERCEL_ENV)
}
});