Skip to content

Commit

Permalink
update port
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayman391 committed Dec 5, 2024
1 parent 12bb472 commit bcd931f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// app/config.ts

export const BACKEND_IP = "http://132.198.61.202:8000";
export const BACKEND_IP = "http://0.0.0.0:8000";
2 changes: 0 additions & 2 deletions app/query/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ export default function QueryPage(): JSX.Element {
country
)}&startDate=${startDateInt}&endDate=${endDateInt}&keywords=${encodedKeywords}&groups=${encodedGroups}&num_comments=${numComments}&post_or_comment=${type}&num_documents=${numDocsPerType}`;

const res = await fetch(url);
if (!res.ok) throw new Error(`Server error: ${res.status}`);
const data = await res.json();

// Set default values for missing fields
const processedResponse = data.response.map((item: QueryResponseItem) => ({
...item,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"scripts": {
"flask-dev": "FLASK_DEBUG=1 pipenv run flask --app babycenter-backend/index run -p 5328",
"next-dev": "next dev",
"dev": "pnpm run next-dev",
"dev": "pnpm run next-dev -p 8080",
"build": "next build",
"start": "next start",
"start": "next start -p 8080",
"lint": "next lint"
},
"dependencies": {
Expand Down

0 comments on commit bcd931f

Please sign in to comment.