Skip to content

Instantly share code, notes, and snippets.

@ByteCrak07
Created March 5, 2023 20:52
Show Gist options
  • Save ByteCrak07/feef4b9ee0c93d96437bd3c56ed7d24c to your computer and use it in GitHub Desktop.
Save ByteCrak07/feef4b9ee0c93d96437bd3c56ed7d24c to your computer and use it in GitHub Desktop.
import PocketBase from "pocketbase";
const pb = new PocketBase(process.env.NEXT_PUBLIC_PB_URL);
if (process.env.NODE_ENV === "development") pb.autoCancellation(false);
export default pb;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment