update
This commit is contained in:
9
app/hooks/useContentFix.ts
Normal file
9
app/hooks/useContentFix.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import useConfigStore from "@/store/config";
|
||||
|
||||
export function useContentFix(content?: string | null) {
|
||||
const s3Url = useConfigStore((store) => store.s3Url);
|
||||
return content?.replace(
|
||||
/https?:\/\/(?:minio-hdd)\.yoshino-s\.(?:online|xyz)\//g,
|
||||
s3Url,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user