diff --git a/scripts/docs.angularjs.org-firebase/firebase.json b/scripts/docs.angularjs.org-firebase/firebase.json index 50e9c43e2..8f82fc2d8 100644 --- a/scripts/docs.angularjs.org-firebase/firebase.json +++ b/scripts/docs.angularjs.org-firebase/firebase.json @@ -6,6 +6,13 @@ "/index-debug.html", "/index-jquery.html" ], + "redirects": [ + { + "source": "/error/:namespace\\::error*", + "destination": "/error/:namespace/:error*", + "type": 302 + } + ], "rewrites": [ { "source": "/", diff --git a/scripts/errors.angularjs.org-firebase/.firebaserc b/scripts/errors.angularjs.org-firebase/.firebaserc new file mode 100644 index 000000000..1a1cefce0 --- /dev/null +++ b/scripts/errors.angularjs.org-firebase/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "errors-angularjs-org" + } +} diff --git a/scripts/errors.angularjs.org-firebase/firebase.json b/scripts/errors.angularjs.org-firebase/firebase.json new file mode 100644 index 000000000..37eb5870f --- /dev/null +++ b/scripts/errors.angularjs.org-firebase/firebase.json @@ -0,0 +1,27 @@ +{ + "hosting": { + "public": "public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "redirects": [ + { + "source": "/:version/:namespace\\::error*", + "destination": "https://code.angularjs.org/:version/docs/error/:namespace/:error*", + "type": 301 + }, + { + "source": "/:version/:error*", + "destination": "https://code.angularjs.org/:version/docs/error/:error*", + "type": 301 + }, + { + "source": "/", + "destination": "https://docs.angularjs.org/error/", + "type": 301 + } + ] + } +} diff --git a/scripts/errors.angularjs.org-firebase/public/404.html b/scripts/errors.angularjs.org-firebase/public/404.html new file mode 100644 index 000000000..829eda8fd --- /dev/null +++ b/scripts/errors.angularjs.org-firebase/public/404.html @@ -0,0 +1,33 @@ + + +
+ + +The specified file was not found on this website. Please check the URL for mistakes and try again.
+This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.