Changeset 90f7842 for src/lib


Ignore:
Timestamp:
12/21/25 18:36:39 (9 months ago)
Author:
Stefan-Saveski <stefansaveski19@…>
Branches:
master
Children:
997d094
Parents:
b67f274
Message:

fix: Update API endpoints to use production URL for user data retrieval and authentication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lib/auth.ts

    rb67f274 r90f7842  
    7474
    7575export async function login(params: { email: string; password: string }) {
    76   const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL ?? 'http://localhost:5147';
     76  const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL ?? 'https://iknow-api.onrender.com';
    7777
    7878  const response = await fetch(`${baseUrl}/api/auth/login`, {
Note: See TracChangeset for help on using the changeset viewer.