Skip to content

Commit ee89935

Browse files
authored
Merge pull request #123 from jphacks/develop
パターンマッチング
2 parents 2e5d079 + be07327 commit ee89935

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

front/src/app/hooks/useDB.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

nginx/conf.d/app-http-only.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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;

nginx/conf.d/app.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)