Skip to content

Commit

Permalink
フロントエンドのサブディレクトリー配置に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
tissueMO committed Jun 1, 2023
1 parent dda61e8 commit 2818127
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
run: |
touch .env
echo "export NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}" >> .env
echo "export BASE_DIR=${{ secrets.BASE_DIR }}" >> .env
- name: Build and Push
uses: docker/build-push-action@v3
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- ./frontend/src:/app
environment:
NEXT_PUBLIC_API_URL: http://localhost:3000
BASE_DIR: ''
backend:
build:
context: backend
Expand Down
1 change: 1 addition & 0 deletions frontend/src/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
basePath: process.env.BASE_DIR || '',
};

module.exports = nextConfig;

0 comments on commit 2818127

Please sign in to comment.