fix: wrong fresh domain used in hash (#3085)

This commit is contained in:
Marvin Hagemeister
2025-07-09 23:39:39 +02:00
committed by GitHub
parent f7174d0df0
commit 31434a2cf9
@@ -34,7 +34,7 @@ export function automaticWorkspaceFolders<T>(root: string): MiddlewareFn<T> {
uuid ??= await generate(
NAMESPACE_URL,
new TextEncoder().encode(
`https://fresh.com?root=${encodeURIComponent(root)}&v=${0}`,
`https://fresh.deno.dev?root=${encodeURIComponent(root)}&v=${0}`,
),
);
content ??= JSON.stringify({ workspace: { root, uuid } }, undefined, 2);