Merge pull request #318 from vector-im/dbkr/netlify_redirect

Add redirects to netlify deployment
This commit is contained in:
David Baker 2022-05-11 13:11:09 +01:00 committed by GitHub
commit 500a19d655
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View file

@ -45,6 +45,9 @@ jobs:
- name: Extract Artifacts
run: unzip -d dist build.zip && rm build.zip
- name: Copy redirects file
run: cp config/netlify_redirects dist/_redirects
- name: Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v1.2.3

View file

@ -9,7 +9,7 @@ RUN element-call/scripts/dockerbuild.sh
FROM nginxinc/nginx-unprivileged:alpine
COPY --from=builder /src/element-call/dist /app
COPY scripts/default.conf /etc/nginx/conf.d/
COPY config/default.conf /etc/nginx/conf.d/
USER root

4
config/netlify_redirects Normal file
View file

@ -0,0 +1,4 @@
# This file is copied to the netlify deploy dir in the upload stage
# Redirect any unknown path to index.html
/* /index.html 200