Skip to content

Commit

Permalink
use BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nuotsu committed Aug 11, 2024
1 parent 6f26866 commit 05401e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanitypress",
"version": "4.3.2",
"version": "4.3.3",
"description": "A Next.js + Sanity.io Starter Template",
"author": "nuotsu <[email protected]> (https://nuotsu.dev)",
"license": "ISC",
Expand Down
3 changes: 1 addition & 2 deletions src/lib/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BASE_URL } from '@sanity/src/env'
import dev from './env'

const BASE_URL = dev ? 'http://localhost:3000' : ''

export async function fetchAPI<T = any>(
endpoint: string,
{
Expand Down

0 comments on commit 05401e5

Please sign in to comment.