mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-27 17:41:21 +00:00
Merge pull request #213 from bartvdbraak/fix/url-seo-config
Update site configuration and Vite environment variables
This commit is contained in:
commit
ba2ce8c8a4
2 changed files with 8 additions and 4 deletions
|
@ -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/'
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue