Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/netlify-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- develop
paths:
- 'front/**'
pull_request:
branches:
- develop
paths:
- 'front/**'
workflow_run:
workflows: [ "Lint, Build & Tests - NodeJs" ]
types:
Expand All @@ -22,7 +27,7 @@ jobs:
- name: Netlify prevew deploy
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: './front/build'
publish-dir: 'front/build'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
Expand Down
4 changes: 2 additions & 2 deletions front/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[build]
base="/front"
publish="/build"
command="npm install && yarn start"
command="yarn build && yarn start"

1 change: 1 addition & 0 deletions front/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200