1import { encodePath } from "./raw-url"; 2import { join } from "path"; 3 4export default function shareURL( 5 id: string, 6 relativePath: string = "" 7): string { 8 // do NOT need base path since this is a link from the next server into itself. 9 return join("/share", "public_paths", id, encodePath(relativePath)); 10} 11 12