1
0
mirror of https://github.com/vector-im/element-call.git synced 2022-05-22 02:31:18 +03:00

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
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