Skip to content

Commit aa10349

Browse files
committed
fix: use url sep
1 parent bc95498 commit aa10349

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server/utils.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import path from "node:path";
21
import type { FC } from "react";
32

43
export const getAssetPath = (assetPath: string): string => {
54
if (import.meta.env.PROD) {
6-
const pathParts = assetPath.split(path.sep);
5+
const pathParts = assetPath.split("/");
76
return pathParts[pathParts.length - 1];
87
} else {
98
return assetPath;

0 commit comments

Comments
 (0)