11 lines
206 B
TypeScript
11 lines
206 B
TypeScript
import axios from 'axios'
|
|
|
|
export const API_URL = process.env.NEXT_PUBLIC_API_URL as string
|
|
|
|
export const api = axios.create({
|
|
baseURL: API_URL,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|