Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous deployment #106

Merged
merged 2 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions frontend/src/config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions frontend/src/helpers/assignment-service/api-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import HttpStatusCode from "@/types/HttpStatusCode";
import axios, { AxiosError } from "axios";
import { ASSIGNMENT_API_URL } from "@/config";

const url = process.env.NEXT_PUBLIC_URL ?? "http://localhost:8080";
const apiUrl = url + "/assignment/api";
const api = axios.create({
baseURL: ASSIGNMENT_API_URL,
baseURL: apiUrl,
timeout: 5000,
headers: {
"Content-type": "application/json",
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/helpers/grading-service/api-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import HttpStatusCode from "@/types/HttpStatusCode";
import axios, { AxiosError } from "axios";
import { GRADING_API_URL } from "@/config";

const url = process.env.NEXT_PUBLIC_URL ?? "http://localhost:8088";
const apiUrl = url + "/grading/api";
const api = axios.create({
baseURL: GRADING_API_URL,
baseURL: apiUrl,
timeout: 10000,
headers: {
"Content-type": "application/json",
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/helpers/user-service/api-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import axios, { isAxiosError } from "axios";
import HttpStatusCode from "@/types/HttpStatusCode";
import { USER_API_URL } from "@/config";

const url = process.env.NEXT_PUBLIC_URL ?? "http://localhost:3001";
const apiUrl = url + "/user";
const api = axios.create({
baseURL: USER_API_URL,
baseURL: apiUrl,
timeout: 5000,
headers: {
"Content-type": "application/json",
Expand Down
Loading