From 2f698375eda3c15600111e3b069f7e259a0e861b Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Fri, 27 Jul 2018 11:12:09 -0700 Subject: [PATCH] ci: fix firebase config to work with latest firebase-tools --- etc/cli.angular.io/.firebaserc | 5 +++++ etc/cli.angular.io/firebase.json | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 etc/cli.angular.io/.firebaserc diff --git a/etc/cli.angular.io/.firebaserc b/etc/cli.angular.io/.firebaserc new file mode 100644 index 000000000000..3f1a5bf73284 --- /dev/null +++ b/etc/cli.angular.io/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "cli-angular-io" + } +} diff --git a/etc/cli.angular.io/firebase.json b/etc/cli.angular.io/firebase.json index f621d83aae1e..ce1acdeab6ec 100644 --- a/etc/cli.angular.io/firebase.json +++ b/etc/cli.angular.io/firebase.json @@ -1,9 +1,15 @@ { - "firebase": "cli-angular-io", - "public": "www", - "ignore": [ - "firebase.json", - "**/.*" - ] + "hosting": { + "public": "", + "ignore": [ + "firebase.json", + "**/.*" + ], + "rewrites": [ + { + "source": "/**/!(*.@(js|ts|html|css|json|svg|png|jpg|jpeg))", + "destination": "/index.html" + } + ] + } } -