From 1e8de3296931440906277f5abeed552bd8f22320 Mon Sep 17 00:00:00 2001 From: CaroFG Date: Wed, 23 Aug 2023 17:33:39 +0200 Subject: [PATCH] Add mention to env var prefix for Next.js users --- learn/cookbooks/vercel.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/learn/cookbooks/vercel.mdx b/learn/cookbooks/vercel.mdx index 0d7fe3979d..9fe2f7611c 100644 --- a/learn/cookbooks/vercel.mdx +++ b/learn/cookbooks/vercel.mdx @@ -81,6 +81,10 @@ Go back to your project settings and check the new Meilisearch environment varia ![Display the environment variables in the project settings](https://raw.githubusercontent.com/meilisearch/documentation/main/assets/images/vercel/07.project-settings-environment-variables-tab.png) + +When using Next.js, ensure you prefix your browser-accessible environment variables with `NEXT_PUBLIC_`. This makes them available to the browser side of your application. + + ## Take advantage of the Meilisearch Cloud dashboard ![Meilisearch Cloud dashboard: overview of the "search-app" project](https://raw.githubusercontent.com/meilisearch/documentation/main/assets/images/vercel/08.meilisearch-cloud-dashboard.png)