File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ services:
2323 restart : unless-stopped
2424 environment :
2525 - NODE_ENV=production
26- - NEXT_PUBLIC_API_URL=https://ani-math.jp/api
26+ - NEXT_PUBLIC_API_URL=https://ani-math.jp
2727 # ports: は削除します (Nginx経由でのみアクセスさせるため)
2828
2929 db :
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type SendResponse = {
3737}
3838
3939
40- const API_BASE_URL = process . env . NEXT_PUBLIC_API_URL + 'api' ;
40+ const API_BASE_URL = process . env . NEXT_PUBLIC_API_URL + '/ api' ;
4141
4242/**
4343 * Custom hook for interacting with the database and animation generation APIs.
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ server {
1010
1111 # バックエンドAPIへのプロキシ(開発/テスト用)
1212 location /api/ {
13- # /api/をバックエンドの/にマッピング
14- rewrite ^/api/(.*) /$1 break;
15-
13+ # /api/をそのままバックエンドに転送
1614 proxy_pass http://app:8000;
1715 proxy_set_header Host $host;
1816 proxy_set_header X-Real-IP $remote_addr;
Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ server {
4141
4242 # バックエンドAPIへのプロキシ
4343 location /api/ {
44- # /api/をバックエンドの/にマッピング
45- rewrite ^/api/(.*) /$1 break;
46-
44+ # /api/をそのままバックエンドに転送
4745 proxy_pass http://app:8000;
4846 proxy_set_header Host $host;
4947 proxy_set_header X-Real-IP $remote_addr;
You can’t perform that action at this time.
0 commit comments