Commit 7318a29f authored by Thor-Herman's avatar Thor-Herman
Browse files

Change requests to use VM instead of local backend

Uses the open port 3000 on the VM so that no VPN is necessary
parent 9d9ba855
......@@ -6,7 +6,7 @@ const { manifest } = Constants;
// This gets the IP address of the host for Expo client. Makes you connect to the IP address of the machine on LAN
const Localurl = `http://${manifest.debuggerHost.split(":").shift()}:8000`;
const VMUrl = "http://it2810-75.idi.ntnu.no:8000";
const VMUrl = "http://it2810-75.idi.ntnu.no:3000";
const prod = {
// The VM backend
......@@ -14,7 +14,7 @@ const prod = {
};
const dev = {
// Local backend
url: Localurl, // If trying the server locally. Change to Localurl.
url: VMUrl, // If trying the server locally. Change to Localurl.
};
export const config = process.env.NODE_ENV === "development" ? dev : prod;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment