next.js/packages/next/src/shared/lib/encode-uri-path.ts
encode-uri-path.ts7 lines132 B
export function encodeURIPath(file: string) {
  return file
    .split('/')
    .map((p) => encodeURIComponent(p))
    .join('/')
}
Quest for Codev2.0.0
/
SIGN IN