Skip to content

Commit

Permalink
Deploy deployment on google firebase hosting platform
Browse files Browse the repository at this point in the history
  • Loading branch information
scarrascoalvarez committed Aug 29, 2020
1 parent 2cab4b3 commit 45bace8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "starwars-md"
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
/tmp
/out-tsc
dist

# firebase
.firebase

# Only exists if Bazel was run
/bazel-out

Expand Down
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist/md-starwars-frontend",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export const environment = {
API_STARWARS_URL: 'https://swapi.dev/api',
CACHE_EXPIRATION_TIME: 300000,
CACHE_SIZE: 1,
API_IMAGE_URL: 'https://starwars-visualguide.com/assets/img/starships/'
API_IMAGE_URL: 'https://starwars-visualguide.com/assets/img/'
};

0 comments on commit 45bace8

Please sign in to comment.