Skip to content

Commit af2a989

Browse files
🔧 - chore: use port 8000 as default backend
1 parent 70be0e6 commit af2a989

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

frontend/.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
REACT_APP_API_URL=http://localhost:8080
1+
REACT_APP_API_URL=http://localhost:8000
22
REACT_APP_API_PATH=/api/v1
33
REACT_APP_ZAAK_URL_TEMPLATE=https://www.example.com/zaken/{identificatie}

frontend/src/lib/api/request.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { getCookie } from "../cookie/cookie";
22

33
/** Scheme for all API requests. */
4-
export const API_URL = process.env.REACT_APP_API_URL;
4+
export const API_URL = process.env.REACT_APP_API_URL || "http://localhost:8000";
55

66
/** The base path for all API requests. */
7-
export const API_PATH = process.env.REACT_APP_API_PATH;
7+
export const API_PATH = process.env.REACT_APP_API_PATH || "/api/v1";
88

99
/** The base url for all API requests. */
1010
export const API_BASE_URL = `${API_URL}${API_PATH}`;

frontend/src/pages/destructionlist/create/DestructionListCreate.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const meta: Meta<typeof DestructionListCreatePage> = {
2525
parameters: {
2626
mockData: [
2727
{
28-
url: "http://localhost:8080/api/v1/_zaaktypen-choices?",
28+
url: "http://localhost:8000/api/v1/_zaaktypen-choices?",
2929
method: "GET",
3030
status: 200,
3131
response: [

frontend/src/pages/destructionlist/detail/DestructionListDetail.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const meta: Meta<typeof DestructionListDetailPage> = {
2525
parameters: {
2626
mockData: [
2727
{
28-
url: "http://localhost:8080/api/v1/_zaaktypen-choices?",
28+
url: "http://localhost:8000/api/v1/_zaaktypen-choices?",
2929
method: "GET",
3030
status: 200,
3131
response: [

frontend/src/pages/destructionlist/review/DestructionListReview.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const meta: Meta<typeof DestructionListReviewPage> = {
1717
parameters: {
1818
mockData: [
1919
{
20-
url: "http://localhost:8080/api/v1/_zaaktypen-choices?",
20+
url: "http://localhost:8000/api/v1/_zaaktypen-choices?",
2121
method: "GET",
2222
status: 200,
2323
response: [

0 commit comments

Comments
 (0)