fix: api path and sharp

This commit is contained in:
Daniel Soares
2021-12-13 16:04:31 -03:00
parent 8c37b851f3
commit aaaaedb73c
5 changed files with 352 additions and 73 deletions

View File

@@ -1,7 +1,5 @@
import axios from 'axios'
const { RAILWAY_STATIC_URL } = process.env
export const api = axios.create({
baseURL: `${RAILWAY_STATIC_URL}/api` || 'http://localhost:3000/api'
baseURL: '/api'
})