mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
14 lines
345 B
TypeScript
14 lines
345 B
TypeScript
// import * as Sentry from '@sentry/nextjs';
|
|
import type { NextApiRequest } from 'next';
|
|
|
|
import appConfig from 'configs/app/config';
|
|
|
|
export default function getUrlWithNetwork(_req: NextApiRequest, path: string) {
|
|
return [
|
|
appConfig.api.basePath,
|
|
path,
|
|
]
|
|
.filter((segment) => segment !== '' && segment !== '/')
|
|
.join('');
|
|
}
|