fix: access environment variables is changed in services (#1930)

Co-authored-by: Sainath <sainath@Sainaths-MacBook-Pro.local>
This commit is contained in:
guru_sainath 2023-08-22 01:13:51 +05:30 committed by GitHub
parent b02417120b
commit b406a70e72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 17 deletions

View file

@ -1,11 +1,9 @@
// services
import APIService from "services/api.service";
const { NEXT_PUBLIC_API_BASE_URL } = process.env;
class IssueService extends APIService {
constructor() {
super(NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000");
super(process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000");
}
async getPublicIssues(workspace_slug: string, project_slug: string): Promise<any> {