Create a simple cookie with Remix
Cookies allow state to be shared between the browser and server. In this article, we look at creating a simple cookie with Remix to display different messages based on whether the user has visited the page before.
Environment Variables are a way to make values globally available within the environment our code is running in - either the client’s browser or on the web server hosting our app. Environment variables are often used to store secrets - such as an API key. In this article, we look at how to make our secret values available on the server — loaders and actions in Remix — and how to expose public values — such as our Supabase url and anon key — to the browser.