chore(scripts): clean up setup; add start + update

This commit is contained in:
Cory Dransfeldt 2025-06-20 17:31:11 -07:00
parent 555d611c2a
commit 4bc85bde57
No known key found for this signature in database
10 changed files with 103 additions and 63 deletions

View file

@ -179,8 +179,8 @@ export const loadConfig = async () => {
};
const fetchGlobals = async () => {
const POSTGREST_URL = process.env.POSTGREST_URL;
const POSTGREST_API_KEY = process.env.POSTGREST_API_KEY;
const POSTGREST_URL = process.env.POSTGREST_URL?.replace(/^"(.*)"$/, "$1");
const POSTGREST_API_KEY = process.env.POSTGREST_API_KEY?.replace(/^"(.*)"$/, "$1");
if (!POSTGREST_URL || !POSTGREST_API_KEY) {
console.warn("⚠️ Missing POSTGREST_URL or POSTGREST_API_KEY in env, skipping globals fetch.");