chore(frontend): use url from env

This commit is contained in:
Leandro Antônio Farias Machado 2023-06-08 11:46:50 -03:00
parent ef120e3d40
commit 4efb6595ea

View File

@ -84,7 +84,7 @@ const handleOpen = () => {
} }
fetch(`https://d9962fd9-2464-4a30-9a86-a15a04b57ad0.mock.pstmn.io/device/${router.query.id}/${method}`, requestOptions) fetch(`${process.env.NEXT_PUBLIC_REST_ENPOINT}/device/${router.query.id}/${method}`, requestOptions)
.then(response => response.text()) .then(response => response.text())
.then(result => { .then(result => {
setOpen(false) setOpen(false)