Skip to content

Commit

Permalink
fuck it all change back
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTunchi committed Jun 23, 2024
1 parent f27fd06 commit 19708a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
cache: 'npm'
- name: install npm dependencies
run: npm install
- name: change config
run: echo "export const settings = {host:\"http://localhost:3030\"}" > /config.js
- name: Set permissions
run: sudo chmod 777 /config.js


- name: start backend
run: npm run start-be &
Expand Down
6 changes: 3 additions & 3 deletions src/api/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as config from '..config.js';
export const settings = config.settings;

export const settings = {
host: '',
};

async function request(url, options) {
try {
Expand Down
3 changes: 2 additions & 1 deletion src/api/data.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as api from './api.js';

const host = api.settings.host;
const host = 'http://localhost:3030'
api.settings.host = 'http://localhost:3030';

export const login = api.login;
export const register = api.register;
Expand Down
1 change: 0 additions & 1 deletion src/config.js

This file was deleted.

0 comments on commit 19708a7

Please sign in to comment.