Skip to content

Commit 1d2c636

Browse files
author
Flatlogic Bot
committed
chore: update API URLs to use flatlogic.com domain
1 parent af9ce47 commit 1d2c636

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const isDevelopment = import.meta.env.DEV;
22
const hostApi = isDevelopment
33
? "http://localhost"
4-
: "https://sing-generator-node.herokuapp.com";
4+
: "https://sing-generator-node.flatlogic.com";
55
const portApi = isDevelopment ? 8080 : "";
66
const baseURLApi = `${hostApi}${portApi ? `:${portApi}` : ``}/api`;
77
const redirectUrl = isDevelopment
@@ -16,7 +16,7 @@ const appConfig = {
1616
portApi,
1717
baseURLApi,
1818
redirectUrl,
19-
remote: "https://sing-generator-node.herokuapp.com",
19+
remote: "https://sing-generator-node.flatlogic.com",
2020
isBackend,
2121
auth: {
2222
email: 'admin@flatlogic.com',

src/context/ProductContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function getProductsImages(dispatch) {
139139
return data.map((c) => {
140140
return c.replace(
141141
/http:\/\/.+\//,
142-
'https://flatlogic-node-backend.herokuapp.com/assets/products/',
142+
'https://flatlogic-node-backend.flatlogic.com/assets/products/',
143143
);
144144
});
145145
};

src/pages/ecommerce/CreateProduct.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const CreateProduct = () => {
3939

4040
const [newProduct, setNewProduct] = React.useState({
4141
img:
42-
"https://flatlogic-node-backend.herokuapp.com/assets/products/img1.jpg",
42+
"https://flatlogic-node-backend.flatlogic.com/assets/products/img1.jpg",
4343
title: null,
4444
subtitle: null,
4545
price: 0.1,

0 commit comments

Comments
 (0)