73 words, 1 min read
⚠️ This post links to an external website. ⚠️
When upgrading to Elixir 1.19 with Erlang/OTP 28, the deployment failed with a cryptic error:
** (Mix) Could not write configuration file because it has invalid terms Application: :cors_plug Key: :origin Invalid value: ~r/.*\.jumpcomedy\.com$/ Reason: you must use the /E modifier to store regexesThe fix was simple - just add one characters:
config :cors_plug, - origin: ~r/.*\.jumpcomedy\.com$/ + origin: ~r/.*\.jumpcomedy\.com$/EBut why did this break? And what does that /E actually do?
continue reading on zarar.dev
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.