mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 06:09:08 +03:00
use base path
This commit is contained in:
1 parent
c17912836f
commit
5a8373d505
1 file changed
+2
-1
@@ -3,6 +3,7 @@ import { SupportCategories } from '@supabase/shared-types/out/constants'
|
||||
import * as Sentry from '@sentry/nextjs'
|
||||
import { useRouter } from 'next/router'
|
||||
import { MailIcon } from 'lucide-react'
|
||||
import { BASE_PATH } from 'lib/constants'
|
||||
|
||||
// [Jordi] Map so we dont have to import the enum every time we want to pass it to this component
|
||||
const SUPPORT_CATEGORY_VALUES = {
|
||||
@@ -51,7 +52,7 @@ export const ContactSupportButton = ({
|
||||
}
|
||||
|
||||
function getSupportUrl() {
|
||||
const url = new URL('/support/new', window.location.origin)
|
||||
const url = new URL(`${BASE_PATH}/support/new`, window.location.origin)
|
||||
url.searchParams.set('category', category)
|
||||
url.searchParams.set('subject', subject)
|
||||
url.searchParams.set('message', message)
|
||||
|
||||
Reference in new issue
Block a user