Question: I have this update function I'm aware the `findOrFail` call returns a model not found exception sent to the user. Is there a way you can add some code to catch this if an ID is not found or does the call do that for me? Here is the function it needs applying too. 

```
public function update(string $id)
{
    $this->user = Auth::user();

    $this->film = Film::findOrFail($id);

    if (!$this->hasFilm()) {
        abort(400, "You don't have a film configured");
    }

    $this->validation();

    $this->transaction();

    return $this->film->toJson();
}

```

Answer: 
Try `ng build --configuration=production` as this is what your angular json has defined as a "production configuration".
Looks like you'r storing your configuration in `environment` and do not add `fileReplacements` in production configuration so check your `angular.json` production config `fileReplacements` it should be

```
"production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],

```