fix: new backend url

This commit is contained in:
Ruidy 2021-07-14 16:57:31 +02:00
parent 1f326cb12d
commit 96404aed4d
2 changed files with 2 additions and 2 deletions

1
.env.local Normal file
View file

@ -0,0 +1 @@
NEXT_PUBLIC_API_URL="http://localhost:9000/bills"

View file

@ -1,8 +1,7 @@
import axios from "axios";
import { Bill, BillForm } from "../types/bill";
const BASE_URL = "http://localhost:9000/bills";
const BASE_URL = process.env.NEXT_PUBLIC_API_URL
const client = axios.create({ baseURL: BASE_URL });
export const createBill = async (data: BillForm) => {