Skip to content

Commit

Permalink
Change backend to railway hosted instead of heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaswesterlund committed Nov 11, 2022
1 parent 394e792 commit c2317d2
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 77 deletions.
108 changes: 36 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/services/feats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-spektrumrf.herokuapp.com/api/feats' : '/api/feats';
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-node-production.up.railway.app/api/feats' : '/api/feats';

let token = null;

Expand Down
2 changes: 1 addition & 1 deletion src/services/locations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-spektrumrf.herokuapp.com/api/locations' : '/api/locations';
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-node-production.up.railway.app/api/locations' : '/api/locations';

let token = null;

Expand Down
2 changes: 1 addition & 1 deletion src/services/login.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-spektrumrf.herokuapp.com/api/login' : '/api/login';
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-node-production.up.railway.app/api/login' : '/api/login';

const login = async (credentials, year) => {
const config = {
Expand Down
2 changes: 1 addition & 1 deletion src/services/properties.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-spektrumrf.herokuapp.com/api/properties' : '/api/properties';
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-node-production.up.railway.app/api/properties' : '/api/properties';

let token = null;

Expand Down
2 changes: 1 addition & 1 deletion src/services/users.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-spektrumrf.herokuapp.com/api/users' : '/api/users';
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://vasagatantracker-node-production.up.railway.app/api/users' : '/api/users';

let token = null;

Expand Down

0 comments on commit c2317d2

Please sign in to comment.