Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Move routesPath to utils/routes

Blue Mousefb362d0979e0
diff --git a/app/App.tsx b/app/App.tsx
index e6264f389..1eabea225 100644
--- a/app/App.tsx
+++ b/app/App.tsx
@@ -20,7 +20,7 @@ import { errorsActions } from 'redux/reducers/errors'
import { alertsActions } from 'redux/reducers/alerts'
import { StateType, useAppDispatch } from 'redux/store'
import { isBrowser } from 'redux/constants'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { getPageMeta } from 'utils/server'
import { authMe } from './api'
diff --git a/app/components/Footer/index.tsx b/app/components/Footer/index.tsx
index 5ed1b31ea..e1142725e 100644
--- a/app/components/Footer/index.tsx
+++ b/app/components/Footer/index.tsx
@@ -21,7 +21,7 @@ import {
DISCORD_URL,
CAPTCHA_URL,
} from 'redux/constants'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
const navigation = {
company: [
diff --git a/app/components/Header/index.tsx b/app/components/Header/index.tsx
index 4e178fcec..821538ca3 100644
--- a/app/components/Header/index.tsx
+++ b/app/components/Header/index.tsx
@@ -39,7 +39,7 @@ import _includes from 'lodash/includes'
import _startsWith from 'lodash/startsWith'
import cx, { clsx } from 'clsx'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { authActions } from 'redux/reducers/auth'
import sagaActions from 'redux/sagas/actions'
import UIActions from 'redux/reducers/ui'
diff --git a/app/components/SEO.tsx b/app/components/SEO.tsx
index 0cee0c7d1..5126a21e8 100644
--- a/app/components/SEO.tsx
+++ b/app/components/SEO.tsx
@@ -5,7 +5,7 @@ import _toUpper from 'lodash/toUpper'
// import { MAIN_URL } from 'redux/constants'
import { getPageMeta } from 'utils/server'
import { getOgImageUrl } from 'redux/constants'
-import routes from 'routesPath'
+import routes from 'utils/routes'
export const SEO = () => {
const {
diff --git a/app/components/marketing/DitchGoogle.tsx b/app/components/marketing/DitchGoogle.tsx
index d4008345a..6be9d927a 100644
--- a/app/components/marketing/DitchGoogle.tsx
+++ b/app/components/marketing/DitchGoogle.tsx
@@ -2,7 +2,7 @@ import { Link } from '@remix-run/react'
import { ArrowRightIcon } from '@heroicons/react/20/solid'
import { Trans, useTranslation } from 'react-i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
interface IDitchGoogle {
screenshot: {
diff --git a/app/components/marketing/Pricing.tsx b/app/components/marketing/Pricing.tsx
index 6a2638906..43a88ee0c 100644
--- a/app/components/marketing/Pricing.tsx
+++ b/app/components/marketing/Pricing.tsx
@@ -30,7 +30,7 @@ import { alertsActions } from 'redux/reducers/alerts'
import { authActions } from 'redux/reducers/auth'
import sagaActions from 'redux/sagas/actions'
import { authMe, previewSubscriptionUpdate, changeSubscriptionPlan } from 'api'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { AppDispatch, StateType } from 'redux/store'
import Loader from 'ui/Loader'
import { Badge } from 'ui/Badge'
diff --git a/app/hoc/projectProtected.tsx b/app/hoc/projectProtected.tsx
index 569a05a25..e87195876 100644
--- a/app/hoc/projectProtected.tsx
+++ b/app/hoc/projectProtected.tsx
@@ -4,7 +4,7 @@ import { useNavigate, useParams } from '@remix-run/react'
import _find from 'lodash/find'
import _replace from 'lodash/replace'
import { StateType } from 'redux/store'
-import routes from 'routesPath'
+import routes from 'utils/routes'
type PropsType = {
[key: string]: any
diff --git a/app/hoc/protected.tsx b/app/hoc/protected.tsx
index 25de6ce97..6644ae545 100644
--- a/app/hoc/protected.tsx
+++ b/app/hoc/protected.tsx
@@ -4,7 +4,7 @@ import { useNavigate } from '@remix-run/react'
import { getAccessToken } from 'utils/accessToken'
import { StateType } from 'redux/store'
-import routes from 'routesPath'
+import routes from 'utils/routes'
type AuthParamType = {
shouldBeAuthenticated: boolean
diff --git a/app/modals/PaidFeature.tsx b/app/modals/PaidFeature.tsx
index f8ff94d15..1fd8227b5 100644
--- a/app/modals/PaidFeature.tsx
+++ b/app/modals/PaidFeature.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from '@remix-run/react'
import { useTranslation } from 'react-i18next'
import Modal from 'ui/Modal'
-import routes from 'routesPath'
+import routes from 'utils/routes'
interface IPaidFeature {
onClose: () => void
diff --git a/app/pages/Auth/CheckYourInbox/CheckYourInbox.tsx b/app/pages/Auth/CheckYourInbox/CheckYourInbox.tsx
index 976fb1a46..f03d309a0 100644
--- a/app/pages/Auth/CheckYourInbox/CheckYourInbox.tsx
+++ b/app/pages/Auth/CheckYourInbox/CheckYourInbox.tsx
@@ -9,7 +9,7 @@ import { withAuthentication } from 'hoc/protected'
import { authActions } from 'redux/reducers/auth'
import sagaActions from 'redux/sagas/actions'
import { StateType, useAppDispatch } from 'redux/store'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const CheckYourInbox = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx b/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
index 3470352a3..4533070b5 100644
--- a/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
+++ b/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
@@ -7,7 +7,7 @@ import _isEmpty from 'lodash/isEmpty'
import { createNewPassword } from 'api'
import { withAuthentication, auth } from 'hoc/protected'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Input from 'ui/Input'
import Button from 'ui/Button'
import { isValidPassword, MIN_PASSWORD_CHARS, MAX_PASSWORD_CHARS } from 'utils/validator'
diff --git a/app/pages/Auth/ForgotPassword/ForgotPassword.tsx b/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
index 18677c27e..c6a43e5e9 100644
--- a/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
+++ b/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
@@ -6,7 +6,7 @@ import _isEmpty from 'lodash/isEmpty'
import { forgotPassword } from 'api'
import { withAuthentication, auth } from 'hoc/protected'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Input from 'ui/Input'
import Button from 'ui/Button'
import { TRIAL_DAYS } from 'redux/constants'
diff --git a/app/pages/Auth/Signin/Signin.tsx b/app/pages/Auth/Signin/Signin.tsx
index f957763e7..3dd39c8b2 100644
--- a/app/pages/Auth/Signin/Signin.tsx
+++ b/app/pages/Auth/Signin/Signin.tsx
@@ -9,7 +9,7 @@ import _isString from 'lodash/isString'
import GoogleAuth from 'components/GoogleAuth'
import GithubAuth from 'components/GithubAuth'
import { withAuthentication, auth } from 'hoc/protected'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Input from 'ui/Input'
import Button from 'ui/Button'
import Checkbox from 'ui/Checkbox'
diff --git a/app/pages/Auth/Signup/BasicSignup.tsx b/app/pages/Auth/Signup/BasicSignup.tsx
index 18221a910..68007667e 100644
--- a/app/pages/Auth/Signup/BasicSignup.tsx
+++ b/app/pages/Auth/Signup/BasicSignup.tsx
@@ -17,7 +17,7 @@ import { trackCustom } from 'utils/analytics'
import { useAppDispatch } from 'redux/store'
import GoogleAuth from 'components/GoogleAuth'
import GithubAuth from 'components/GithubAuth'
-import routes from 'routesPath'
+import routes from 'utils/routes'
interface ISignUpForm {
email: string
diff --git a/app/pages/Auth/Signup/Signup.tsx b/app/pages/Auth/Signup/Signup.tsx
index 4cde7be00..8660f86a2 100644
--- a/app/pages/Auth/Signup/Signup.tsx
+++ b/app/pages/Auth/Signup/Signup.tsx
@@ -10,7 +10,7 @@ import _isEmpty from 'lodash/isEmpty'
import { getAccessToken } from 'utils/accessToken'
import GoogleAuth from 'components/GoogleAuth'
import GithubAuth from 'components/GithubAuth'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Input from 'ui/Input'
import Checkbox from 'ui/Checkbox'
import Tooltip from 'ui/Tooltip'
diff --git a/app/pages/Auth/Socialised/index.tsx b/app/pages/Auth/Socialised/index.tsx
index 12184340e..e054d349d 100644
--- a/app/pages/Auth/Socialised/index.tsx
+++ b/app/pages/Auth/Socialised/index.tsx
@@ -8,7 +8,7 @@ import _replace from 'lodash/replace'
import { processSSOToken } from 'api'
import { SSO_PROVIDERS } from 'redux/constants'
import Loader from 'ui/Loader'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const Socialised = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Auth/VerifyEmail/index.tsx b/app/pages/Auth/VerifyEmail/index.tsx
index e51b6f88d..f1d583ac0 100644
--- a/app/pages/Auth/VerifyEmail/index.tsx
+++ b/app/pages/Auth/VerifyEmail/index.tsx
@@ -8,7 +8,7 @@ import _isArray from 'lodash/isArray'
import sagaActions from 'redux/sagas/actions'
import Loader from 'ui/Loader'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const VerifyEmail = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Captcha/Settings/CaptchaSettings.tsx b/app/pages/Captcha/Settings/CaptchaSettings.tsx
index 257f4e154..e045bfe2b 100644
--- a/app/pages/Captcha/Settings/CaptchaSettings.tsx
+++ b/app/pages/Captcha/Settings/CaptchaSettings.tsx
@@ -33,7 +33,7 @@ import Checkbox from 'ui/Checkbox'
import Modal from 'ui/Modal'
import Select from 'ui/Select'
import { trackCustom } from 'utils/analytics'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { ICaptchaProject, IProject, IProjectNames } from 'redux/models/IProject'
import { IUser } from 'redux/models/IUser'
diff --git a/app/pages/Captcha/View/ViewCaptcha.tsx b/app/pages/Captcha/View/ViewCaptcha.tsx
index 8c2989fb3..a4e2aa3ca 100644
--- a/app/pages/Captcha/View/ViewCaptcha.tsx
+++ b/app/pages/Captcha/View/ViewCaptcha.tsx
@@ -46,7 +46,7 @@ import Loader from 'ui/Loader'
import Dropdown from 'ui/Dropdown'
import Checkbox from 'ui/Checkbox'
import FlatPicker from 'ui/Flatpicker'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { getProject, getCaptchaData } from 'api'
import { Panel } from 'pages/Project/View/Panels'
import {
diff --git a/app/pages/Changelog/index.tsx b/app/pages/Changelog/index.tsx
index ac8f0ad1e..ba306faa7 100644
--- a/app/pages/Changelog/index.tsx
+++ b/app/pages/Changelog/index.tsx
@@ -6,7 +6,7 @@ import dayjs from 'dayjs'
import { Link } from '@remix-run/react'
import { SWETRIX_VS_GOOGLE, DOCS_URL, CAPTCHA_URL, DOCS_CAPTCHA_URL } from 'redux/constants'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const INTEGRATIONS_LINK = `${routes.user_settings}#integrations`
diff --git a/app/pages/Dashboard/Dashboard.tsx b/app/pages/Dashboard/Dashboard.tsx
index 05c5f0e70..6dd201acf 100644
--- a/app/pages/Dashboard/Dashboard.tsx
+++ b/app/pages/Dashboard/Dashboard.tsx
@@ -27,7 +27,7 @@ import Select from 'ui/Select'
import { withAuthentication, auth } from 'hoc/protected'
import Loader from 'ui/Loader'
import { Badge } from 'ui/Badge'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { nFormatter, calculateRelativePercentage } from 'utils/generic'
import {
isSelfhosted,
diff --git a/app/pages/ErrorTracking/index.tsx b/app/pages/ErrorTracking/index.tsx
index 5c42b5990..1f46f17a0 100644
--- a/app/pages/ErrorTracking/index.tsx
+++ b/app/pages/ErrorTracking/index.tsx
@@ -8,7 +8,7 @@ import { ArrowRightIcon } from '@heroicons/react/20/solid'
import _map from 'lodash/map'
import _isEmpty from 'lodash/isEmpty'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { getAccessToken } from 'utils/accessToken'
import { nFormatterSeparated } from 'utils/generic'
import { ERROR_TRACKING_LIVE_DEMO_URL, isBrowser } from 'redux/constants'
diff --git a/app/pages/Landings/Marketers.tsx b/app/pages/Landings/Marketers.tsx
index 5b0ee28a7..f8283b7e4 100644
--- a/app/pages/Landings/Marketers.tsx
+++ b/app/pages/Landings/Marketers.tsx
@@ -4,7 +4,7 @@ import { useTranslation, Trans } from 'react-i18next'
import { useSelector } from 'react-redux'
import { StateType } from 'redux/store'
import { BOOK_A_CALL_URL, DISCORD_URL, isBrowser, LIVE_DEMO_URL } from 'redux/constants'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline'
import { ArrowRightIcon } from '@heroicons/react/20/solid'
diff --git a/app/pages/Landings/SmallBusinesses.tsx b/app/pages/Landings/SmallBusinesses.tsx
index 6297d4150..c9b5220c1 100644
--- a/app/pages/Landings/SmallBusinesses.tsx
+++ b/app/pages/Landings/SmallBusinesses.tsx
@@ -4,7 +4,7 @@ import { useTranslation, Trans } from 'react-i18next'
import { useSelector } from 'react-redux'
import { StateType } from 'redux/store'
import { BOOK_A_CALL_URL, DISCORD_URL, isBrowser, LIVE_DEMO_URL, TWITTER_URL } from 'redux/constants'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline'
import { ArrowRightIcon } from '@heroicons/react/20/solid'
diff --git a/app/pages/Landings/Startups.tsx b/app/pages/Landings/Startups.tsx
index ea82213aa..8f251f59c 100644
--- a/app/pages/Landings/Startups.tsx
+++ b/app/pages/Landings/Startups.tsx
@@ -4,7 +4,7 @@ import { useTranslation, Trans } from 'react-i18next'
import { useSelector } from 'react-redux'
import { StateType } from 'redux/store'
import { BOOK_A_CALL_URL, DISCORD_URL, isBrowser, LIVE_DEMO_URL } from 'redux/constants'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline'
import { ArrowRightIcon } from '@heroicons/react/20/solid'
diff --git a/app/pages/NotFound/index.tsx b/app/pages/NotFound/index.tsx
index db718b028..98502af84 100644
--- a/app/pages/NotFound/index.tsx
+++ b/app/pages/NotFound/index.tsx
@@ -2,7 +2,7 @@ import React from 'react'
import { Link } from '@remix-run/react'
import { useTranslation } from 'react-i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const NotFound = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Performance/index.tsx b/app/pages/Performance/index.tsx
index 5f90a5a5a..7968b335c 100644
--- a/app/pages/Performance/index.tsx
+++ b/app/pages/Performance/index.tsx
@@ -8,7 +8,7 @@ import { ArrowRightIcon } from '@heroicons/react/20/solid'
import _map from 'lodash/map'
import _isEmpty from 'lodash/isEmpty'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { getAccessToken } from 'utils/accessToken'
import { nFormatterSeparated } from 'utils/generic'
import { PERFORMANCE_LIVE_DEMO_URL, isBrowser } from 'redux/constants'
diff --git a/app/pages/Press/index.tsx b/app/pages/Press/index.tsx
index dd4f0605e..66518435a 100644
--- a/app/pages/Press/index.tsx
+++ b/app/pages/Press/index.tsx
@@ -3,7 +3,7 @@ import React from 'react'
import { Link } from '@remix-run/react'
import { useTranslation, Trans } from 'react-i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const FONT_INTER_URL = 'https://rsms.me/inter/'
const FONT_NAME = 'Inter'
diff --git a/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx b/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
index fb3fce439..1ceae625c 100644
--- a/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
+++ b/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
@@ -22,7 +22,7 @@ import Modal from 'ui/Modal'
import { PROJECT_TABS, QUERY_CONDITION, QUERY_METRIC, QUERY_TIME } from 'redux/constants'
import { createAlert, updateAlert, deleteAlert, ICreateAlert } from 'api'
import { withAuthentication, auth } from 'hoc/protected'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Select from 'ui/Select'
import { IAlerts } from 'redux/models/IAlerts'
import { IUser } from 'redux/models/IUser'
diff --git a/app/pages/Project/Alerts/View/ProjectAlertsView.tsx b/app/pages/Project/Alerts/View/ProjectAlertsView.tsx
index eb01c7a78..a7459b806 100644
--- a/app/pages/Project/Alerts/View/ProjectAlertsView.tsx
+++ b/app/pages/Project/Alerts/View/ProjectAlertsView.tsx
@@ -18,7 +18,7 @@ import {
ExclamationTriangleIcon,
} from '@heroicons/react/24/outline'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Button from 'ui/Button'
import Modal from 'ui/Modal'
import PaidFeature from 'modals/PaidFeature'
diff --git a/app/pages/Project/ConfirmShare/index.tsx b/app/pages/Project/ConfirmShare/index.tsx
index aad665bfb..324e3568c 100644
--- a/app/pages/Project/ConfirmShare/index.tsx
+++ b/app/pages/Project/ConfirmShare/index.tsx
@@ -7,7 +7,7 @@ import _split from 'lodash/split'
import sagaActions from 'redux/sagas/actions'
import Loader from 'ui/Loader'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { AppDispatch } from 'redux/store'
const ConfirmShare = () => {
diff --git a/app/pages/Project/New/index.tsx b/app/pages/Project/New/index.tsx
index eeccd973a..fd81e08d0 100644
--- a/app/pages/Project/New/index.tsx
+++ b/app/pages/Project/New/index.tsx
@@ -14,7 +14,7 @@ import Input from 'ui/Input'
import Button from 'ui/Button'
import Loader from 'ui/Loader'
import { trackCustom } from 'utils/analytics'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { useAppDispatch, StateType } from 'redux/store'
import sagaActions from 'redux/sagas/actions'
import { alertsActions } from 'redux/reducers/alerts'
diff --git a/app/pages/Project/ProjectProtectedPassword/index.tsx b/app/pages/Project/ProjectProtectedPassword/index.tsx
index 51106b625..e7ff39a01 100644
--- a/app/pages/Project/ProjectProtectedPassword/index.tsx
+++ b/app/pages/Project/ProjectProtectedPassword/index.tsx
@@ -6,7 +6,7 @@ import _isEmpty from 'lodash/isEmpty'
import _size from 'lodash/size'
import _replace from 'lodash/replace'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Input from 'ui/Input'
import Button from 'ui/Button'
import { checkPassword } from 'api'
diff --git a/app/pages/Project/Settings/Emails/ConfirmReportsShare/index.tsx b/app/pages/Project/Settings/Emails/ConfirmReportsShare/index.tsx
index 066d08b70..395a8bb8d 100644
--- a/app/pages/Project/Settings/Emails/ConfirmReportsShare/index.tsx
+++ b/app/pages/Project/Settings/Emails/ConfirmReportsShare/index.tsx
@@ -6,7 +6,7 @@ import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/solid'
import Loader from 'ui/Loader'
import { confirmSubscriberInvite } from 'api'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const ConfirmReportsShare = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Project/Settings/ProjectSettings.tsx b/app/pages/Project/Settings/ProjectSettings.tsx
index ea6495e30..affd3e8b4 100644
--- a/app/pages/Project/Settings/ProjectSettings.tsx
+++ b/app/pages/Project/Settings/ProjectSettings.tsx
@@ -38,7 +38,7 @@ import Checkbox from 'ui/Checkbox'
import Modal from 'ui/Modal'
import FlatPicker from 'ui/Flatpicker'
import countries from 'utils/isoCountries'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Dropdown from 'ui/Dropdown'
import MultiSelect from 'ui/MultiSelect'
import CCRow from '../View/components/CCRow'
diff --git a/app/pages/Project/Settings/TransferProject/TransferProjectConfirm.tsx b/app/pages/Project/Settings/TransferProject/TransferProjectConfirm.tsx
index 242c5fb71..540ec3ff1 100644
--- a/app/pages/Project/Settings/TransferProject/TransferProjectConfirm.tsx
+++ b/app/pages/Project/Settings/TransferProject/TransferProjectConfirm.tsx
@@ -6,7 +6,7 @@ import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/solid'
import Loader from 'ui/Loader'
import { confirmTransferProject } from 'api'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const TransferProjectConfirm = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Project/Settings/TransferProject/TransferProjectReject.tsx b/app/pages/Project/Settings/TransferProject/TransferProjectReject.tsx
index eb70d3633..244927135 100644
--- a/app/pages/Project/Settings/TransferProject/TransferProjectReject.tsx
+++ b/app/pages/Project/Settings/TransferProject/TransferProjectReject.tsx
@@ -6,7 +6,7 @@ import { XCircleIcon, InformationCircleIcon } from '@heroicons/react/24/solid'
import Loader from 'ui/Loader'
import { rejectTransferProject } from 'api'
-import routes from 'routesPath'
+import routes from 'utils/routes'
const TransferProjectReject = (): JSX.Element => {
const { t } = useTranslation('common')
diff --git a/app/pages/Project/View/ViewProject.tsx b/app/pages/Project/View/ViewProject.tsx
index ff20a6135..3f343faed 100644
--- a/app/pages/Project/View/ViewProject.tsx
+++ b/app/pages/Project/View/ViewProject.tsx
@@ -116,7 +116,7 @@ import BarChart from 'ui/icons/BarChart'
import Forecast from 'modals/Forecast'
import NewFunnel from 'modals/NewFunnel'
import ViewProjectHotkeys from 'modals/ViewProjectHotkeys'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import Header from 'components/Header'
import Footer from 'components/Footer'
import {
diff --git a/app/pages/Project/View/components/LockedDashboard.tsx b/app/pages/Project/View/components/LockedDashboard.tsx
index 772aa2a45..eb919ba7b 100644
--- a/app/pages/Project/View/components/LockedDashboard.tsx
+++ b/app/pages/Project/View/components/LockedDashboard.tsx
@@ -4,7 +4,7 @@ import { Link } from '@remix-run/react'
import { IUser, DashboardBlockReason } from 'redux/models/IUser'
import { IProjectForShared } from 'redux/models/ISharedProject'
import { useTranslation } from 'react-i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
interface ILockedDashboard {
user?: IUser
diff --git a/app/pages/Project/View/components/WaitingForAnError.tsx b/app/pages/Project/View/components/WaitingForAnError.tsx
index ab5258f93..dd5db6f0b 100644
--- a/app/pages/Project/View/components/WaitingForAnError.tsx
+++ b/app/pages/Project/View/components/WaitingForAnError.tsx
@@ -1,7 +1,7 @@
import { BugAntIcon } from '@heroicons/react/24/outline'
import { Link } from '@remix-run/react'
import { useTranslation, Trans } from 'react-i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { ERROR_TRACKING_DOCS_URL } from 'redux/constants'
const TROUBLESHOOTING_URL = 'https://docs.swetrix.com/troubleshooting'
diff --git a/app/pages/Project/View/components/WaitingForAnEvent.tsx b/app/pages/Project/View/components/WaitingForAnEvent.tsx
index a25300473..d7b75424a 100644
--- a/app/pages/Project/View/components/WaitingForAnEvent.tsx
+++ b/app/pages/Project/View/components/WaitingForAnEvent.tsx
@@ -3,7 +3,7 @@ import { Link } from '@remix-run/react'
import { IUser } from 'redux/models/IUser'
import { IProjectForShared } from 'redux/models/ISharedProject'
import { useTranslation, Trans } from 'react-i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import PulsatingCircle from 'ui/icons/PulsatingCircle'
import TrackingSnippet from 'modals/TrackingSnippet'
diff --git a/app/pages/ReferralPage/index.tsx b/app/pages/ReferralPage/index.tsx
index 71878e771..507ad2d54 100644
--- a/app/pages/ReferralPage/index.tsx
+++ b/app/pages/ReferralPage/index.tsx
@@ -6,7 +6,7 @@ import { ArrowRightIcon } from '@heroicons/react/20/solid'
import { StateType } from 'redux/store/index'
import Header from 'components/Header'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { Lines } from 'components/marketing/Lines'
import { isBrowser, REFERRAL_COOKIE_DAYS, REFERRAL_DISCOUNT } from 'redux/constants'
diff --git a/app/pages/Unsubscribe/index.tsx b/app/pages/Unsubscribe/index.tsx
index 26ff43dec..52cafc595 100644
--- a/app/pages/Unsubscribe/index.tsx
+++ b/app/pages/Unsubscribe/index.tsx
@@ -8,7 +8,7 @@ import { useSelector } from 'react-redux'
import { StateType } from 'redux/store'
import { unsubscribeFromEmailReports, unsubscribeFromEmailReports3rdParty } from 'api'
import Loader from 'ui/Loader'
-import routes from 'routesPath'
+import routes from 'utils/routes'
interface IUnsubscribe {
type: 'user-reports' | '3rdparty'
diff --git a/app/pages/UserSettings/UserSettings.tsx b/app/pages/UserSettings/UserSettings.tsx
index 817585f59..e98951623 100644
--- a/app/pages/UserSettings/UserSettings.tsx
+++ b/app/pages/UserSettings/UserSettings.tsx
@@ -50,7 +50,7 @@ import TimezonePicker from 'ui/TimezonePicker'
import Textarea from 'ui/Textarea'
import Loader from 'ui/Loader'
import { isValidEmail, isValidPassword, MIN_PASSWORD_CHARS } from 'utils/validator'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import { trackCustom } from 'utils/analytics'
import { getCookie, setCookie } from 'utils/cookie'
import {
diff --git a/app/routes/index.tsx b/app/routes/index.tsx
index b6c97e7ca..db5539b6e 100644
--- a/app/routes/index.tsx
+++ b/app/routes/index.tsx
@@ -22,7 +22,7 @@ import { TypeAnimation } from 'react-type-animation'
import _map from 'lodash/map'
import _isEmpty from 'lodash/isEmpty'
-import routesPath from 'routesPath'
+import routesPath from 'utils/routes'
import { getAccessToken } from 'utils/accessToken'
import { nFormatterSeparated } from 'utils/generic'
import { GITHUB_URL, MARKETPLACE_URL, LIVE_DEMO_URL, BOOK_A_CALL_URL, isBrowser, isSelfhosted } from 'redux/constants'
diff --git a/app/routesPath/index.ts b/app/utils/routes.ts
similarity index 100%
rename from app/routesPath/index.ts
rename to app/utils/routes.ts
diff --git a/app/utils/server.ts b/app/utils/server.ts
index 0c47ab558..54287d621 100644
--- a/app/utils/server.ts
+++ b/app/utils/server.ts
@@ -1,5 +1,5 @@
import type i18next from 'i18next'
-import routes from 'routesPath'
+import routes from 'utils/routes'
import _includes from 'lodash/includes'
import _split from 'lodash/split'
import _startsWith from 'lodash/startsWith'