Skip to content
Open
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: 5 additions & 0 deletions .changeset/lazy-jeans-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fix an issue where dynamic routes in complex projects return the string [object Object] instead of the expected content
5 changes: 3 additions & 2 deletions packages/astro/src/runtime/server/render/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ export interface RendererFlusher {
flush(): void | Promise<void>;
}

export const isNode =
typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]';
export const isNode = typeof process !== "undefined"
&& Object.prototype.toString.call(process) === "[object process]"
&& !(typeof navigator !== "undefined" && navigator.userAgent === "Cloudflare-Workers");
// @ts-expect-error: Deno is not part of the types.
export const isDeno = typeof Deno !== 'undefined';

Expand Down
Loading