Skip to content

Commit 5ed625c

Browse files
committed
🙏 Remove "webSearchEnabled" variable
1 parent f2a8c5f commit 5ed625c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

cli/src/envGenerator.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ export const generateEnv = (envValues) => {
88
let platformUrl = isDockerCompose
99
? "http://host.docker.internal:8000"
1010
: "http://localhost:8000";
11-
const websearchEnabled =
12-
envValues.serpApiKey !== null && envValues.serpApiKey !== "";
1311

1412
const envDefinition = getEnvDefinition(
1513
envValues,
1614
isDockerCompose,
1715
dbPort,
1816
platformUrl,
19-
websearchEnabled
2017
);
2118

2219
const envFileContent = generateEnvFileContent(envDefinition);
@@ -28,7 +25,6 @@ const getEnvDefinition = (
2825
isDockerCompose,
2926
dbPort,
3027
platformUrl,
31-
websearchEnabled
3228
) => {
3329
return {
3430
"Deployment Environment": {
@@ -86,9 +82,9 @@ const generateEnvFileContent = (config) => {
8682
let configFile = "";
8783

8884
Object.entries(config).forEach(([section, variables]) => {
89-
configFile += `# ${section}:\n`;
85+
configFile += `# ${ section }:\n`;
9086
Object.entries(variables).forEach(([key, value]) => {
91-
configFile += `${key}="${value}"\n`;
87+
configFile += `${ key }="${ value }"\n`;
9288
});
9389
configFile += "\n";
9490
});
@@ -137,15 +133,15 @@ export const testEnvFile = () => {
137133
if (missingFromFile.length > 0) {
138134
errorMessage += "\nYour ./next/.env is missing the following keys:\n";
139135
missingFromFile.forEach((key) => {
140-
errorMessage += chalk.whiteBright(`- ❌ ${key}\n`);
136+
errorMessage += chalk.whiteBright(`- ❌ ${ key }\n`);
141137
});
142138
errorMessage += "\n";
143139
}
144140

145141
if (missingFromDef.length > 0) {
146142
errorMessage += "Your ./next/.env is missing the following keys:\n";
147143
missingFromDef.forEach((key) => {
148-
errorMessage += chalk.whiteBright(`- ⚠️ ${key}\n`);
144+
errorMessage += chalk.whiteBright(`- ⚠️ ${ key }\n`);
149145
});
150146
errorMessage += "\n";
151147
}

0 commit comments

Comments
 (0)