Skip to content

Commit 6e51236

Browse files
authored
Merge pull request #452 from miurla/refactor/remove-next-public-prefix
refactor: rename NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY to ENABLE_SAVE_CHAT_HISTORY
2 parents 978ab95 + 1a0512d commit 6e51236

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.env.local.example

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ TAVILY_API_KEY=[YOUR_TAVILY_API_KEY] # Get your API key at: https://app.tavily.
1818
# Chat History Storage
1919
# Enable persistent chat history across sessions
2020
#------------------------------------------------------------------------------
21-
# NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY=true # enable chat history storage
21+
# ENABLE_SAVE_CHAT_HISTORY=true # enable chat history storage
2222

23-
# Redis Configuration (Required if NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY=true)
23+
# Redis Configuration (Required if ENABLE_SAVE_CHAT_HISTORY=true)
2424
# Choose between local Redis or Upstash Redis
2525
# OPTION 1: Local Redis
2626
# USE_LOCAL_REDIS=false # use local Redis

app/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function RootLayout({
4646
children: React.ReactNode
4747
}>) {
4848
const enableSaveChatHistory =
49-
process.env.NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY === 'true'
49+
process.env.ENABLE_SAVE_CHAT_HISTORY === 'true'
5050
return (
5151
<html lang="en" suppressHydrationWarning>
5252
<body className={cn('font-sans antialiased', fontSans.variable)}>

components/history-container.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const HistoryContainer: React.FC<HistoryContainerProps> = async ({
1010
location
1111
}) => {
1212
const enableSaveChatHistory =
13-
process.env.NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY === 'true'
13+
process.env.ENABLE_SAVE_CHAT_HISTORY === 'true'
1414
if (!enableSaveChatHistory) {
1515
return null
1616
}

0 commit comments

Comments
 (0)