Support controlling whether to enable the API Key setting module through environment variables.

This commit is contained in:
Rafi
2023-03-24 14:22:45 +08:00
parent 323f10844b
commit 5fa059017c
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
const appName = 'ChatGPT UI'
const appName = process.env.NUXT_PUBLIC_APP_NAME ?? 'ChatGPT UI'
export default defineNuxtConfig({
dev: false,
@@ -14,6 +14,7 @@ export default defineNuxtConfig({
appName: appName,
typewriter: false,
typewriterDelay: 50,
customApiKey: false
}
},
build: {