Skip to content

Instantly share code, notes, and snippets.

@lacymorrow
Created July 20, 2023 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lacymorrow/51bc576469f361f2b8a25fdc1704b928 to your computer and use it in GitHub Desktop.
Save lacymorrow/51bc576469f361f2b8a25fdc1704b928 to your computer and use it in GitHub Desktop.
VSCode Bug
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