Rename NEXT_PUBLIC_... env variables to allow reading from env at runtime

This commit is contained in:
Andrew Pennington 2024-08-15 20:06:40 +01:00
parent 834a38046f
commit 376220b26e
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA
10 changed files with 22 additions and 22 deletions

View file

@ -5,7 +5,7 @@ export const getSuggestions = async (chatHisory: Message[]) => {
const chatModel = localStorage.getItem('chatModel');
const chatModelProvider = localStorage.getItem('chatModelProvider');
const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/suggestions`, {
const res = await fetch(`${process.env.BACKEND_API_URL}/suggestions`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',