Skip to content

Commit 17615c1

Browse files
committed
Fixup logs and placeholder
1 parent 2459a48 commit 17615c1

5 files changed

Lines changed: 1 addition & 17 deletions

File tree

‎global-setup.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { createUserInFile } from "./setup-utils";
44
export default async function globalSetup(config: FullConfig) {
55
const { baseURL } = config.projects[0]?.use || {};
66

7-
console.log('global-setup.ts', baseURL)
8-
97
if (!baseURL) {
108
throw new Error("baseURL is required");
119
}

‎lib/db/config.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ export function getLocalDatabasePath() {
7777
return DEFAULT_LOCAL_DATABASE_PATH;
7878
}
7979

80-
export function isPlaceholderProxyUrl(url: string) {
81-
return url === DEFAULT_DATABASE_PROXY_URL;
82-
}
83-
8480
function normalizeLocalDatabaseUrl(databaseUrl: string) {
8581
return databaseUrl.startsWith("file:") ? databaseUrl : `file:${databaseUrl}`;
8682
}

‎lib/db/drizzle.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
type AsyncRemoteCallback,
77
drizzle as drizzleProxy,
88
} from "drizzle-orm/sqlite-proxy";
9-
import { isPlaceholderProxyUrl, resolveRuntimeDatabaseConfig } from "./config";
9+
import { resolveRuntimeDatabaseConfig } from "./config";
1010
import * as schema from "./schema";
1111

1212
dotenv.config();
@@ -18,12 +18,6 @@ type ProxyQueryResult = Awaited<ReturnType<AsyncRemoteCallback>>;
1818
const databaseConfig = resolveRuntimeDatabaseConfig();
1919

2020
function getProxyEndpoint(proxyUrl: string, pathname: "/query" | "/batch") {
21-
if (isPlaceholderProxyUrl(proxyUrl)) {
22-
throw new Error(
23-
`Set DATABASE_URL to a local SQLite file, a libsql:// URL, or replace DEFAULT_DATABASE_PROXY_URL in lib/db/config.ts before using the shared Durable Object fallback.`,
24-
);
25-
}
26-
2721
return new URL(pathname, ensureTrailingSlash(proxyUrl)).toString();
2822
}
2923

‎playwright.config.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { defineConfig, devices } from "@playwright/test";
1010

1111
const baseURL = process.env.BASE_URL || "https://endform-playwright-tutorial.vercel.app"
1212

13-
console.log('playwright.config.ts', baseURL)
14-
1513
/**
1614
* See https://playwright.dev/docs/test-configuration.
1715
*/

‎setup-utils.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export async function createUser(baseURL: string): Promise<ApiUser> {
1919
if (process.env.VERCEL_BYPASS_TOKEN)
2020
headers.set('x-vercel-protection-bypass', process.env.VERCEL_BYPASS_TOKEN)
2121

22-
console.log('token', process.env.VERCEL_BYPASS_TOKEN, headers)
23-
2422
const response = await fetch(`${baseURL}/api/internal/user`, {
2523
method: "POST",
2624
headers,

0 commit comments

Comments
 (0)