Skip to content

Commit e27d5f1

Browse files
committed
nextRoot should always have trailing slash
1 parent 5e1c986 commit e27d5f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/utils/src/execContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const nextRoot = (): string => {
55
process.env.NEXT_API_ROOT !== undefined &&
66
process.env.NEXT_API_ROOT !== ""
77
)
8-
return process.env.NEXT_API_ROOT.split("/").slice(0, 3).join("/");
8+
return process.env.NEXT_API_ROOT.split("/").slice(0, 3).join("/") + "/";
99
return IS_DEV ? "http://localhost:3000/" : "https://discoursegraphs.com/";
1010
};
1111

0 commit comments

Comments
 (0)