This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
import Router from 'next/router';
|
|
import { resolveHref } from 'next/dist/shared/lib/router/router';
|
|
import { UrlObject } from 'url';
|
|
|
|
const resolveAs = (url: UrlObject): string => resolveHref(Router, url, true)[1];
|
|
|
|
export default resolveAs;
|