Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 29, 2024
1 parent 1820704 commit 7f08330
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Start frontend
env:
API_URL: http://localhost:3333
NEXT_PUBLIC_API_URL: http://localhost:3333
NEXT_PUBLIC_API_URL: xyzPLACEHOLDERxyz
timeout-minutes: 2
run: (npm run build:frontend && npm run start:frontend) & npx wait-on http://localhost:8080/

Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const nextConfig = {
],
},
async rewrites() {
if(!process.env.NEXT_PUBLIC_API_URL) {
if(!process.env.API_URL) {
return []
}

Expand All @@ -33,15 +33,15 @@ const nextConfig = {
},
{
source: "/api/v1/report",
destination: process.env.NEXT_PUBLIC_API_URL + "/api/report",
destination: process.env.API_URL + "/api/report",
},
{
source: "/api/report",
destination: process.env.NEXT_PUBLIC_API_URL + "/api/report",
destination: process.env.API_URL + "/api/report",
},
{
source: "/api/v1/template",
destination: process.env.NEXT_PUBLIC_API_URL + "/api/v1/template",
destination: process.env.API_URL + "/api/v1/template",
},
]
},
Expand Down

0 comments on commit 7f08330

Please sign in to comment.