Skip to content

Commit

Permalink
fixed connecting to wrong backend address
Browse files Browse the repository at this point in the history
  • Loading branch information
yusing committed Sep 22, 2024
1 parent cead8bb commit 441fd70
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
22 changes: 13 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.formatOnType": false, // required
"editor.formatOnPaste": true, // optional
"editor.formatOnSave": true, // optional
"editor.formatOnSaveMode": "file", // required to format on save
"files.autoSave": "onFocusChange", // optional but recommended
"vs-code-prettier-eslint.prettierLast": false // set as "true" to run 'prettier' last not first
}
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.formatOnType": false, // required
"editor.formatOnPaste": true, // optional
"editor.formatOnSave": true, // optional
"editor.formatOnSaveMode": "file", // required to format on save
"files.autoSave": "onFocusChange", // optional but recommended
"vs-code-prettier-eslint.prettierLast": false,
"sonarlint.connectedMode.project": {
"connectionId": "yusing",
"projectKey": "yusing_go-proxy-frontend"
} // set as "true" to run 'prettier' last not first
}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ USER nextjs
EXPOSE 3000

ENV PORT=3000
ENV NODE_ENV=production

# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
Expand Down
8 changes: 0 additions & 8 deletions compose.yml

This file was deleted.

4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
const apiBaseURL =
process.env.NODE_ENV === "development"
? "http://10.0.3.1:8888/v1"
: "http://localhost:8888/v1";

console.log(apiBaseURL);
: "http://127.0.0.1:8888/v1";

const nextConfig = {
output: "standalone",
Expand Down

0 comments on commit 441fd70

Please sign in to comment.