mirror of
https://github.com/rjNemo/melon_frontend
synced 2026-06-06 02:16:45 +00:00
fix: new backend url
This commit is contained in:
parent
1f326cb12d
commit
96404aed4d
2 changed files with 2 additions and 2 deletions
1
.env.local
Normal file
1
.env.local
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
NEXT_PUBLIC_API_URL="http://localhost:9000/bills"
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { Bill, BillForm } from "../types/bill";
|
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 });
|
const client = axios.create({ baseURL: BASE_URL });
|
||||||
|
|
||||||
export const createBill = async (data: BillForm) => {
|
export const createBill = async (data: BillForm) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue