Change hosting to firebase

This commit is contained in:
schmelczerandras 2020-09-24 21:19:23 +02:00
parent 369efe5faa
commit e31b69931a
8 changed files with 44 additions and 157 deletions

24
firebase.json Normal file
View file

@ -0,0 +1,24 @@
{
"hosting": {
"site": "photo-schmelczer-dev",
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png|webm|mp4)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
}
]
}
}