mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
test: improve overall test coverage
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
import { extractHostname } from "./hostname";
|
||||
|
||||
function isProduction() {
|
||||
return (
|
||||
process.env.NODE_ENV === "production" || process.env.NODE_ENV === "test"
|
||||
);
|
||||
}
|
||||
|
||||
const hosts = {
|
||||
API_HOST:
|
||||
process.env.NODE_ENV === "production"
|
||||
? "https://api.notesnook.com"
|
||||
: "http://localhost:5264",
|
||||
AUTH_HOST:
|
||||
process.env.NODE_ENV === "production"
|
||||
? "https://auth.streetwriters.co"
|
||||
: "http://localhost:8264",
|
||||
SSE_HOST:
|
||||
process.env.NODE_ENV === "production"
|
||||
? "https://events.streetwriters.co"
|
||||
: "http://localhost:7264",
|
||||
SUBSCRIPTIONS_HOST:
|
||||
process.env.NODE_ENV === "production"
|
||||
? "https://subscriptions.streetwriters.co"
|
||||
: "http://localhost:9264",
|
||||
ISSUES_HOST:
|
||||
process.env.NODE_ENV === "production"
|
||||
? "https://issues.streetwriters.co"
|
||||
: "http://localhost:2624",
|
||||
API_HOST: isProduction()
|
||||
? "https://api.notesnook.com"
|
||||
: "http://localhost:5264",
|
||||
AUTH_HOST: isProduction()
|
||||
? "https://auth.streetwriters.co"
|
||||
: "http://localhost:8264",
|
||||
SSE_HOST: isProduction()
|
||||
? "https://events.streetwriters.co"
|
||||
: "http://localhost:7264",
|
||||
SUBSCRIPTIONS_HOST: isProduction()
|
||||
? "https://subscriptions.streetwriters.co"
|
||||
: "http://localhost:9264",
|
||||
ISSUES_HOST: isProduction()
|
||||
? "https://issues.streetwriters.co"
|
||||
: "http://localhost:2624",
|
||||
};
|
||||
|
||||
export default hosts;
|
||||
|
||||
Reference in New Issue
Block a user