Skip to content

Commit

Permalink
Merge pull request #13 from pavandeore/dev
Browse files Browse the repository at this point in the history
site url fallback  added
  • Loading branch information
pavandeore authored Nov 24, 2024
2 parents d15dd94 + 670c1c0 commit 972af79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/feed.xml/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as cheerio from 'cheerio'
import { Feed } from 'feed'

export async function GET(req) {
let siteUrl = process.env.NEXT_PUBLIC_SITE_URL
let siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://pawanportfolio.vercel.app';

if (!siteUrl) {
throw Error('Missing NEXT_PUBLIC_SITE_URL environment variable')
Expand Down

0 comments on commit 972af79

Please sign in to comment.