Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove unneeded slashes before url path

Terry Sutton600ae9d9dbe9
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx
index 60f621ebf43..cc32ca920a2 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx
@@ -173,7 +173,7 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
return (
<div key={x.name}>
<li>
- <Link href={`/${x.href}`} passHref>
+ <Link href={`${x.href}`} passHref>
<a className="cursor-pointer transition text-scale-1100 text-sm hover:text-brand-900 flex gap-3 my-1">
{x.icon && <img className="w-4" src={`${router.basePath}${x.icon}`} />}
{x.name}
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx
index cfeeb10c71c..45b419c5b46 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx
@@ -122,7 +122,7 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, id }) => {
)}
<Accordion.Item key={subItem.label} value={subItem.url}>
<li key={subItem.name}>
- <Link href={`/${subItem.url}`} passHref>
+ <Link href={`${subItem.url}`} passHref>
<a
className={[
'cursor-pointer transition text-sm',
@@ -141,7 +141,7 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, id }) => {
{subItem.items.map((subSubItem, subSubItemIndex) => {
return (
<li key={subItem.name}>
- <Link href={`/${subSubItem.url}`} passHref>
+ <Link href={`${subSubItem.url}`} passHref>
<a
className={[
'cursor-pointer transition text-sm',
@@ -166,7 +166,7 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, id }) => {
) : (
<>
<li>
- <Link href={`/${x.url}`} passHref>
+ <Link href={`${x.url}`} passHref>
<a
className={[
'cursor-pointer transition text-sm',
@@ -197,7 +197,7 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, id }) => {
return (
<div key={x.name}>
<li>
- <Link href={`/${x.href}`} passHref>
+ <Link href={`${x.href}`} passHref>
<a className="cursor-pointer transition text-scale-1100 text-sm hover:text-brand-900 flex gap-3 my-1">
{x.icon && <img className="w-4" src={`${router.basePath}${x.icon}`} />}
{x.name}
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
index 2b7a104edf2..a7371f83601 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
@@ -91,7 +91,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id, lib }) => {
const path = useWindowLocation()
useEffect(() => {
- console.log('path', path)
+ //console.log('path', path)
}, [path])
// console.log('firstLevelRoute', firstLevelRoute)
@@ -271,7 +271,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id, lib }) => {
return (
<div key={x.name}>
<li>
- <Link href={`/${x.href}`} passHref>
+ <Link href={`${x.href}`} passHref>
<a className="cursor-pointer transition text-scale-1100 text-sm hover:text-brand-900 flex gap-3 my-1">
{x.icon && (
<Image
diff --git a/apps/docs/components/StepHike/index.tsx b/apps/docs/components/StepHike/index.tsx
index 271070027d8..35c861da06c 100644
--- a/apps/docs/components/StepHike/index.tsx
+++ b/apps/docs/components/StepHike/index.tsx
@@ -12,7 +12,7 @@ const StepHike = ({ children, title }) => {
if (!children) throw 'StepHike component requires <StepHike.Step> children'
const steps = children.filter((x) => {
- console.log('child stuff', x)
+ //console.log('child stuff', x)
return x.type.name === 'Step'
})
@@ -82,10 +82,10 @@ const StepHike = ({ children, title }) => {
{/* <div
className="sticky w-full top-[128px] bottom-[64px] z-10 p-5 rounded-lg
-
+
flex gap-3 items-center
backdrop-blur-lg backdrop-filter bg-white-1200 dark:bg-whiteA-300
-
+
h-[60px]
not-prose
"
@@ -174,11 +174,11 @@ const Step = ({ children, title, step }) => {
<div
ref={ref}
className="sticky w-full top-[64px] z-10 p-5 rounded-lg
-
+
flex gap-3 items-center
backdrop-blur-lg backdrop-filter bg-white-1200 dark:bg-whiteA-300
-
-
+
+
border-b border-l border-r border-scale-600 border-t
h-[60px]
diff --git a/apps/docs/generator/legacy.ts b/apps/docs/generator/legacy.ts
index 7d8f2415458..14870dcf17b 100644
--- a/apps/docs/generator/legacy.ts
+++ b/apps/docs/generator/legacy.ts
@@ -43,8 +43,6 @@ export default async function gen(inputFileName: string, outputDir: string) {
pages.forEach(async (pageSpec: OpenRef.Page) => {
try {
// get the slug from common-client-libs.yml
- //const slug = slugify(pageSpec.id)
-
const slug = commonDocSpecJson.sections.functions
.find((fn) => fn.items.find((item) => item.id === pageSpec.id))
?.items.find((item) => item.id === pageSpec.id).slug
diff --git a/apps/docs/hooks/useWindowLocation.ts b/apps/docs/hooks/useWindowLocation.ts
index 7c9e26a451f..7c3193b20ed 100644
--- a/apps/docs/hooks/useWindowLocation.ts
+++ b/apps/docs/hooks/useWindowLocation.ts
@@ -10,17 +10,17 @@ const useWindowLocation = (): Location | void => {
}
useEffect(() => {
- console.log('HOOK USEEFFECT FOR WINDOWWW')
+ //console.log('HOOK USEEFFECT FOR WINDOWWW')
if (!isMounted) return
- console.log('I AM MOUNTED')
+ //console.log('I AM MOUNTED')
if (!location) {
setWindowLocation(window.location)
}
const handler = () => {
- console.log('handlinggg...')
- console.log(window.location)
+ //console.log('handlinggg...')
+ //console.log(window.location)
setWindowLocation(window.location)
}
@@ -32,7 +32,7 @@ const useWindowLocation = (): Location | void => {
}, [isMounted])
useEffect(() => {
- console.log('location, in hook useffect', location)
+ // console.log('location, in hook useffect', location)
}, [location])
return location
diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xml
index 6d99d10bd15..fa2a773ed38 100644
--- a/apps/docs/public/sitemap.xml
+++ b/apps/docs/public/sitemap.xml
@@ -301,43 +301,43 @@
</url>
<url>
- <loc>https://supabase.com/docs/new/auth/auth-login</loc>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/new/tutorials/nextjs</loc>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>
+ <loc>https://supabase.com/docs/new/auth/auth-login</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>
+ <loc>https://supabase.com/docs/new/tutorials/nextjs</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
@@ -546,6 +546,30 @@
<changefreq>0.5</changefreq>
</url>
+ <url>
+ <loc>https://supabase.com/docs/guides/functions/auth</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/guides/functions/best-practices</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/guides/functions/cicd-workflow</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/guides/functions/quickstart</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
<url>
<loc>https://supabase.com/docs/guides/database/arrays</loc>
<changefreq>weekly</changefreq>
@@ -655,25 +679,25 @@
</url>
<url>
- <loc>https://supabase.com/docs/guides/functions/auth</loc>
+ <loc>https://supabase.com/docs/guides/migrations/firebase-auth</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/functions/best-practices</loc>
+ <loc>https://supabase.com/docs/guides/migrations/firebase-storage</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/functions/cicd-workflow</loc>
+ <loc>https://supabase.com/docs/guides/migrations/firestore-data</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/functions/quickstart</loc>
+ <loc>https://supabase.com/docs/guides/migrations/heroku</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
@@ -816,30 +840,6 @@
<changefreq>0.5</changefreq>
</url>
- <url>
- <loc>https://supabase.com/docs/guides/migrations/firebase-auth</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/guides/migrations/firebase-storage</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/guides/migrations/firestore-data</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/guides/migrations/heroku</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
<url>
<loc>https://supabase.com/docs/guides/platform/compute-add-ons</loc>
<changefreq>weekly</changefreq>
@@ -1087,157 +1087,157 @@
</url>
<url>
- <loc>https://supabase.com/docs/guides/database/extensions/http</loc>
+ <loc>https://supabase.com/docs/guides/functions/examples/index</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc>
+ <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-apple</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-azure</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-bitbucket</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-discord</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-apple</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-facebook</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-azure</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-github</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-bitbucket</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-gitlab</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-discord</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-google</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-facebook</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-keycloak</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-github</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-linkedin</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-gitlab</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-notion</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-google</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-slack</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-keycloak</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-spotify</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-linkedin</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twilio</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-notion</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitch</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-slack</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitter</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-spotify</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-workos</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twilio</loc>
+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-zoom</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitch</loc>
+ <loc>https://supabase.com/docs/guides/database/extensions/http</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitter</loc>
+ <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-workos</loc>
+ <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/auth/social-login/auth-zoom</loc>
+ <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/functions/examples/index</loc>
+ <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc>
+ <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>