Merge pull request #318 from vector-im/dbkr/netlify_redirect
Add redirects to netlify deployment
This commit is contained in:
commit
500a19d655
4 changed files with 8 additions and 1 deletions
3
.github/workflows/netlify-main.yaml
vendored
3
.github/workflows/netlify-main.yaml
vendored
|
@ -45,6 +45,9 @@ jobs:
|
||||||
- name: Extract Artifacts
|
- name: Extract Artifacts
|
||||||
run: unzip -d dist build.zip && rm build.zip
|
run: unzip -d dist build.zip && rm build.zip
|
||||||
|
|
||||||
|
- name: Copy redirects file
|
||||||
|
run: cp config/netlify_redirects dist/_redirects
|
||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
id: netlify
|
id: netlify
|
||||||
uses: nwtgck/actions-netlify@v1.2.3
|
uses: nwtgck/actions-netlify@v1.2.3
|
||||||
|
|
|
@ -9,7 +9,7 @@ RUN element-call/scripts/dockerbuild.sh
|
||||||
FROM nginxinc/nginx-unprivileged:alpine
|
FROM nginxinc/nginx-unprivileged:alpine
|
||||||
|
|
||||||
COPY --from=builder /src/element-call/dist /app
|
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
|
USER root
|
||||||
|
|
||||||
|
|
4
config/netlify_redirects
Normal file
4
config/netlify_redirects
Normal 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
|
Loading…
Add table
Reference in a new issue