Skip to content

Commit

Permalink
Fix: search edge function URL (supabase#18416)
Browse files Browse the repository at this point in the history
fix: search edge function url
  • Loading branch information
gregnr committed Oct 24, 2023
1 parent b1eafd3 commit e207378
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 79 deletions.
10 changes: 1 addition & 9 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,7 @@ const nextConfig = {

const configExport = () => {
const plugins = [
withTM([
'ui',
'common',
'@supabase/auth-helpers-nextjs',
'mermaid',
'mdx-mermaid',
'dayjs',
'shared-data',
]),
withTM(['ui', 'common', 'mermaid', 'mdx-mermaid', 'dayjs', 'shared-data']),
withMDX,
withYaml,
withBundleAnalyzer,
Expand Down
5 changes: 2 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@
"@octokit/core": "^4.2.0",
"@octokit/plugin-paginate-graphql": "^2.0.1",
"@radix-ui/react-accordion": "^1.1.0",
"@supabase/auth-helpers-nextjs": "^0.5.6",
"@supabase/auth-helpers-react": "^0.3.1",
"@supabase/supabase-js": "^2.23.0",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/supabase-js": "^2.38.2",
"common": "*",
"config": "*",
"framer-motion": "^6.5.1",
Expand Down
15 changes: 10 additions & 5 deletions apps/docs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,32 @@ import '../styles/main.scss?v=1.0.0'
import '../styles/new-docs.scss'
import '../styles/prism-okaidia.scss'

import { createBrowserSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { SessionContextProvider } from '@supabase/auth-helpers-react'
import { createClient } from '@supabase/supabase-js'
import { AuthProvider, ThemeProvider, useConsent, useTelemetryProps } from 'common'
import { useRouter } from 'next/router'
import { useCallback, useEffect, useState } from 'react'
import { AppPropsWithLayout } from 'types'
import { CommandMenuProvider } from 'ui'
import { TabsProvider } from 'ui/src/components/Tabs'
import PortalToast from 'ui/src/layout/PortalToast'
import Favicons from '~/components/Favicons'
import SiteLayout from '~/layouts/SiteLayout'
import { API_URL, IS_PLATFORM, LOCAL_SUPABASE } from '~/lib/constants'
import { API_URL, IS_PLATFORM } from '~/lib/constants'
import { post } from '~/lib/fetchWrappers'
import PortalToast from 'ui/src/layout/PortalToast'

function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const router = useRouter()
const telemetryProps = useTelemetryProps()
const { consentValue, hasAcceptedConsent } = useConsent()

const [supabase] = useState(() =>
IS_PLATFORM || LOCAL_SUPABASE ? createBrowserSupabaseClient() : undefined
IS_PLATFORM
? createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY
)
: undefined
)

const handlePageTelemetry = useCallback(
Expand Down Expand Up @@ -140,7 +145,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const SITE_TITLE = 'Supabase Documentation'

const AuthContainer = (props) => {
return IS_PLATFORM || LOCAL_SUPABASE ? (
return IS_PLATFORM ? (
<SessionContextProvider supabaseClient={supabase}>
<AuthProvider>{props.children}</AuthProvider>
</SessionContextProvider>
Expand Down
3 changes: 2 additions & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"@next/bundle-analyzer": "^13.4.0",
"@next/mdx": "^12.3.2",
"@react-three/fiber": "^7.0.29",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/auth-ui-react": "^0.1.6",
"@supabase/supabase-js": "^2.23.0",
"@supabase/supabase-js": "^2.38.2",
"classnames": "^2.3.1",
"cobe": "^0.6.2",
"common": "*",
Expand Down
97 changes: 40 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@radix-ui/react-toast": "^1.1.4",
"@radix-ui/react-toggle": "^1.0.3",
"@radix-ui/react-tooltip": "^1.0.6",
"@supabase/auth-helpers-react": "^0.3.1",
"@supabase/auth-helpers-react": "^0.4.2",
"@tailwindcss/forms": "^0.5.0",
"@tailwindcss/typography": "^0.5.9",
"autoprefixer": "^10.4.14",
Expand Down
5 changes: 2 additions & 3 deletions studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
"@serafin/schema-builder": "^0.18.2",
"@stripe/react-stripe-js": "^1.7.0",
"@stripe/stripe-js": "^1.25.0",
"@supabase/auth-helpers-nextjs": "^0.5.6",
"@supabase/auth-helpers-react": "^0.3.1",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/react-data-grid": "^7.1.0-beta.7",
"@supabase/shared-types": "0.1.51",
"@supabase/supabase-js": "^2.23.0",
"@supabase/supabase-js": "^2.38.2",
"@tanstack/react-query": "^4.22.0",
"@tanstack/react-query-devtools": "^4.22.0",
"@zip.js/zip.js": "^2.6.61",
Expand Down

0 comments on commit e207378

Please sign in to comment.