mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 01:48:12 +00:00
10 lines
320 B
TypeScript
10 lines
320 B
TypeScript
import axios from "axios";
|
|
|
|
export const api = axios.create({
|
|
baseURL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000',
|
|
});
|
|
|
|
// TODO: integrate @edr/auth — add a request interceptor here that attaches
|
|
// the bearer token from the auth package and a response interceptor that
|
|
// triggers a refresh on 401.
|