mirror of
https://github.com/Thream/website.git
synced 2024-07-21 09:28:32 +02:00
14 lines
261 B
TypeScript
14 lines
261 B
TypeScript
|
import axios from 'axios'
|
||
|
|
||
|
export const API_VERSION = '1.0.0'
|
||
|
|
||
|
export const API_URL =
|
||
|
process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:8080'
|
||
|
|
||
|
export const api = axios.create({
|
||
|
baseURL: API_URL,
|
||
|
headers: {
|
||
|
'Content-Type': 'application/json'
|
||
|
}
|
||
|
})
|