Skip to content

Commit

Permalink
Merge pull request #175 from jaipaljadeja/fix/production-url
Browse files Browse the repository at this point in the history
fix: production url
  • Loading branch information
barabanovro authored Jun 26, 2024
2 parents a304a7d + 34a9fd8 commit 8eddfa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const isMac =

export const getAbsoluteURL = (path = '') => {
const baseURL =
typeof window !== 'undefined'
? window.location.origin
process.env.NODE_ENV === 'production'
? 'https://cairovm.codes'
: 'http://localhost:3000'
return baseURL + path
}

0 comments on commit 8eddfa9

Please sign in to comment.