mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
blah
This commit is contained in:
parent
12487011d2
commit
c7dc2a4030
3 changed files with 11 additions and 11 deletions
3
web/.env.development
Normal file
3
web/.env.development
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
NEXT_PUBLIC_ADMIN_USERNAME=admin
|
||||||
|
NEXT_PUBLIC_ADMIN_STREAMKEY=abc123
|
||||||
|
NEXT_PUBLIC_API_HOST=http://localhost:8080/
|
1
web/.gitignore
vendored
1
web/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
.env*.local
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
|
/* eslint-disable prefer-destructuring */
|
||||||
|
const ADMIN_USERNAME = process.env.ADMIN_USERNAME;
|
||||||
|
const ADMIN_STREAMKEY = process.env.ADMIN_STREAMKEY;
|
||||||
|
const NEXT_PUBLIC_API_HOST = process.env.NEXT_PUBLIC_API_HOST;
|
||||||
|
|
||||||
|
const API_LOCATION = `${NEXT_PUBLIC_API_HOST}api/admin/`;
|
||||||
const IS_DEV = true;
|
|
||||||
const ADMIN_USERNAME = 'admin';
|
|
||||||
const ADMIN_STREAMKEY = 'abc123';
|
|
||||||
|
|
||||||
const API_LOCATION = 'http://localhost:8080/api/admin/';
|
|
||||||
|
|
||||||
// Current inbound broadcaster info
|
// Current inbound broadcaster info
|
||||||
export const BROADCASTER = `${API_LOCATION}broadcaster`;
|
export const BROADCASTER = `${API_LOCATION}broadcaster`;
|
||||||
|
|
||||||
|
|
||||||
// Disconnect inbound stream
|
// Disconnect inbound stream
|
||||||
export const DISCONNECT = `${API_LOCATION}disconnect`;
|
export const DISCONNECT = `${API_LOCATION}disconnect`;
|
||||||
|
|
||||||
|
@ -56,9 +56,5 @@ export async function fetchData(url) {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// fetch error cases
|
|
||||||
// json.catch(error => {
|
|
||||||
// error.message; // 'An error has occurred: 404'
|
|
||||||
// });
|
|
||||||
|
|
Loading…
Reference in a new issue