This commit is contained in:
KS Jannette
2026-02-13 16:31:39 -05:00
parent 3e7978c918
commit 089b9e7e9d
5 changed files with 39 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import { useQuery, useMutation } from '@tanstack/react-query';
import type { Sticky, Cluster } from '../types/types';
const API_BASE = 'http://localhost:3001/v1/notes';
const API_BASE = `${import.meta.env.VITE_API_BASE}/v1/notes`;
const fetchStickies = async (): Promise<Sticky[]> => {
const response = await fetch(API_BASE);