From 2f728cf7f0cc8e530179da093db1bf1de6246f97 Mon Sep 17 00:00:00 2001 From: Derrick Reimer Date: Thu, 11 Jul 2024 12:43:47 -0500 Subject: [PATCH] Version 0.8.0 --- README.md | 6 +++--- mix.exs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1873169..5f2e87e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The package can be installed by adding `inertia` to your list of dependencies in ```elixir def deps do [ - {:inertia, "~> 0.7.0"} + {:inertia, "~> 0.8.0"} ] end ``` @@ -56,7 +56,7 @@ config :inertia, # Recommended: enable in non-production environments and disable in production, # so that SSR failures will not cause 500 errors (but instead will fallback to # CSR). - raise_on_ssr_failure: true + raise_on_ssr_failure: config_env() != :prod ``` This library includes a few modules to help render Inertia responses: @@ -553,7 +553,7 @@ Then, update your Inertia Elixir configuration to enable SSR. # Recommended: enable in non-production environments and disable in production, # so that SSR failures will not cause 500 errors (but instead will fallback to # CSR). - raise_on_ssr_failure: true + raise_on_ssr_failure: config_env() != :prod ``` In production, be sure to set `NODE_ENV` environment variable to `production`, so that the SSR script is cached for optimal performance. diff --git a/mix.exs b/mix.exs index 853884b..2277eeb 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Inertia.MixProject do use Mix.Project - @version "0.7.0" + @version "0.8.0" def project do [