Skip to content

Commit 699ccca

Browse files
authored
Frontend - Firebase configuration (#908)
1 parent 15996f5 commit 699ccca

File tree

10 files changed

+3330
-1535
lines changed

10 files changed

+3330
-1535
lines changed

frontend/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ Thumbs.db
4747

4848
# Sentry Config File
4949
.sentryclirc
50+
51+
# Firebase
52+
.firebase
53+
*-debug.log
54+
.runtimeconfig.json

frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN npm prune --production
99

1010
RUN echo "---------- USING APACHE ----------"
1111

12+
1213
FROM httpd:2.4
1314

1415
RUN apt-get update && \

frontend/firebase.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"hosting": {
3+
"public": "dist/frontend/browser",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
],
15+
"headers": [
16+
{
17+
"source": "/service-worker.js",
18+
"headers": [
19+
{
20+
"key": "Cache-Control",
21+
"value": "no-cache"
22+
}
23+
]
24+
},
25+
{
26+
"source": "/**",
27+
"headers": [
28+
{
29+
"key": "Cross-Origin-Opener-Policy",
30+
"value": "same-origin"
31+
},
32+
{
33+
"key": "Cross-Origin-Embedder-Policy",
34+
"value": "require-corp"
35+
}
36+
]
37+
}
38+
]
39+
}
40+
}

0 commit comments

Comments
 (0)