Skip to content

Instantly share code, notes, and snippets.

@lacymorrow
Created July 20, 2023 21:03
Show Gist options
  • Select an option

  • Save lacymorrow/b5689fc499a84cc13f64de1326813015 to your computer and use it in GitHub Desktop.

Select an option

Save lacymorrow/b5689fc499a84cc13f64de1326813015 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}`,
);
@lacymorrow
Copy link
Author

Try in VSCode, an intellisense bug is causing issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment