Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion proxy/logger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { getEnv } from "../src/platform/compat/process.ts";
// Inline getEnv to avoid dependency on src/platform/compat (not copied in Docker)
function getEnv(key: string): string | undefined {
return Deno.env.get(key);
}
import { getTraceContext } from "./tracing.ts";

export type LogLevel = "debug" | "info" | "warn" | "error";
Expand Down
2 changes: 1 addition & 1 deletion proxy/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { proxyLogger } from "./logger.ts";
// Configuration from environment variables
const config = {
apiBaseUrl: Deno.env.get("VERYFRONT_API_BASE_URL") ||
"http://api.veryfront.dev:4000",
"http://api.lvh.me:4000",
clientId: Deno.env.get("OAUTH_CLIENT_ID") || "",
clientSecret: Deno.env.get("OAUTH_CLIENT_SECRET") || "",
previewClientId: Deno.env.get("OAUTH_PREVIEW_CLIENT_ID") || "",
Expand Down
2 changes: 1 addition & 1 deletion src/core/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function getDisableLruIntervalEnv(): boolean {
export function getApiBaseUrlEnv(): string {
return getEnv("VERYFRONT_API_BASE_URL") ||
getEnv("VERYFRONT_API_URL")?.replace("/graphql", "/api") ||
"http://api.veryfront.dev:4000";
"http://api.lvh.me:4000";
}

export function getSsrMaxConcurrentTransformsEnv(defaultValue = 3): number {
Expand Down
9 changes: 5 additions & 4 deletions veryfront.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

// Default URLs
const DEFAULT_API_URL_LOCAL = "http://api.veryfront.dev:4000";
const DEFAULT_API_URL_LOCAL = "http://api.lvh.me:4000";
const DEFAULT_API_URL_PROD = "https://api.veryfront.com";
const DEFAULT_CORS_ORIGIN_LOCAL = "http://api.veryfront.dev:4000";
const DEFAULT_CORS_ORIGIN_LOCAL = "http://api.lvh.me:4000";

class ConfigError extends Error {
constructor(message: string) {
Expand All @@ -29,7 +29,8 @@ class ConfigError extends Error {
let env: Record<string, string> = {};
try {
const { load } = await import("https://deno.land/std@0.220.0/dotenv/mod.ts");
env = await load({ envPath: ".env" });
// examplePath: null skips validation against .env.example (which requires all vars)
env = await load({ envPath: ".env", examplePath: null });
} catch {
// .env doesn't exist (production) - use environment variables only
}
Expand Down Expand Up @@ -155,7 +156,7 @@ export default useGitHub ? {
// Dev server config (ignored in production)
dev: {
port: 3001,
host: "veryfront.dev",
host: "lvh.me",
hmr: contentSource.type === "branch", // Only enable HMR for branch mode
},

Expand Down