mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-23 22:28:43 +08:00
Support command-line flags to configure redis connection and port to use
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import axios from "axios";
|
||||
import queryString from "query-string";
|
||||
|
||||
const BASE_URL = "http://localhost:8080/api";
|
||||
// In production build, API server is on listening on the same port as
|
||||
// the static file server.
|
||||
// In developement, we assume that the API server is listening on port 8080.
|
||||
const BASE_URL =
|
||||
process.env.NODE_ENV === "production" ? "/api" : "http://localhost:8080/api";
|
||||
|
||||
export interface ListQueuesResponse {
|
||||
queues: Queue[];
|
||||
|
Reference in New Issue
Block a user