Created
July 20, 2023 21:03
-
-
Save lacymorrow/51bc576469f361f2b8a25fdc1704b928 to your computer and use it in GitHub Desktop.
VSCode Bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { cache } from 'react'; | |
export const getBaseUrl = cache(() => | |
process.env.VERCEL_URL | |
? `https://app-dir.vercel.app` | |
: `http://localhost:${process.env.PORT ?? 3000}`, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment