We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc95498 commit aa10349Copy full SHA for aa10349
src/server/utils.tsx
@@ -1,9 +1,8 @@
1
-import path from "node:path";
2
import type { FC } from "react";
3
4
export const getAssetPath = (assetPath: string): string => {
5
if (import.meta.env.PROD) {
6
- const pathParts = assetPath.split(path.sep);
+ const pathParts = assetPath.split("/");
7
return pathParts[pathParts.length - 1];
8
} else {
9
return assetPath;
0 commit comments