Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -5,9 +5,9 @@ import { fileURLToPath } from "node:url";
|
||||
|
||||
import { envVariableDefinitions } from "../packages/config/src/catalog.ts";
|
||||
|
||||
const ENV_FILES = [".env.example", ".env.local.example", ".env.production.example", ".env.fly.example", ".env.test"];
|
||||
const ENV_FILES = [".env.example", ".env.local.example", ".env.production.example", ".env.test"];
|
||||
const SHARED_REQUIRED_FILES = [".env.example", ".env.test"];
|
||||
const PRODUCTION_EXAMPLE_FILES = [".env.production.example", ".env.fly.example"];
|
||||
const PRODUCTION_EXAMPLE_FILES = [".env.production.example"];
|
||||
const PRODUCTION_PLACEHOLDER_PATTERN = /(^|[.:/@-])(?:app\.|admin\.|api\.)?example\.(?:com|org|net)(?:$|[/:?&.#-])/i;
|
||||
const KEY_PATTERN = /(?:^|\s)([A-Z][A-Z0-9_]*)(?:\s*=|=)/g;
|
||||
|
||||
@@ -62,10 +62,6 @@ function parseEnvFile(rootDir, relativePath) {
|
||||
lines.forEach((rawLine, index) => {
|
||||
let line = normalizeLine(rawLine);
|
||||
|
||||
if (line.startsWith("flyctl secrets set ")) {
|
||||
line = line.replace(/^flyctl secrets set\s+/, "");
|
||||
}
|
||||
|
||||
if (line.length === 0 || line.startsWith("#") || line === "--app YOUR_APP_NAME") {
|
||||
return;
|
||||
}
|
||||
@@ -78,12 +74,10 @@ function parseEnvFile(rootDir, relativePath) {
|
||||
const entry = { key, value, line: index + 1 };
|
||||
entries.push(entry);
|
||||
|
||||
if (relativePath !== ".env.fly.example") {
|
||||
if (seen.has(key)) {
|
||||
duplicateKeys.push(entry);
|
||||
} else {
|
||||
seen.add(key);
|
||||
}
|
||||
if (seen.has(key)) {
|
||||
duplicateKeys.push(entry);
|
||||
} else {
|
||||
seen.add(key);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -149,7 +143,7 @@ function checkEnvFile(rootDir, relativePath, catalog) {
|
||||
failures.push(`${relativePath}:${duplicate.line}: duplicate-key ${duplicate.key}`);
|
||||
}
|
||||
|
||||
if ((relativePath === ".env.production.example" || relativePath === ".env.fly.example") && activeKeys.has("REDIS_URL")) {
|
||||
if (relativePath === ".env.production.example" && activeKeys.has("REDIS_URL")) {
|
||||
const redisEntry = entries.find((entry) => entry.key === "REDIS_URL");
|
||||
failures.push(`${relativePath}:${redisEntry?.line ?? 1}: redis-url-must-remain-commented REDIS_URL`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user