Set The Host Explicitly To localhost To Set The Server IP To 127.0.…
#75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Frontend - Run build | |
| on: | |
| push: | |
| branches: ['*'] | |
| pull_request: | |
| branches: ['*'] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: nextstep-frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create envfile | |
| uses: SpicyPizza/create-envfile@v2.0.3 | |
| with: | |
| envkey_VITE_PORT: 5000 | |
| envkey_VITE_BACKEND_URL: http://localhost:3000 | |
| file_name: nextstep-frontend/.env | |
| fail_on_empty: true | |
| sort_keys: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Run build | |
| run: npm run build |