Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const IS_PREVIEW = process.env.VERCEL_ENV === 'preview'

const protocol = IS_DEV ? 'http://' : 'https://'

export const SITE_URL: string =
protocol + (process.env.NEXT_PUBLIC_URL ?? 'localhost:3000')
const baseUrl = process.env.NEXT_PUBLIC_URL?.trim() || 'localhost:3000'
export const SITE_URL: string = protocol + baseUrl

export const RSS_FEED_URL = `${SITE_URL}/rss/feed.xml`
export const JSON_FEED_URL = `${SITE_URL}/rss/feed.json`
Expand Down
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading
Loading