Skip to content

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

chore: update message

Jonathan Summers-Muir589d41ffcf05
diff --git a/studio/pages/project/[ref]/functions/interfaces/FunctionLayout.tsx b/studio/pages/project/[ref]/functions/interfaces/FunctionLayout.tsx
index cd34b0e700a..b146ca8fbf1 100644
--- a/studio/pages/project/[ref]/functions/interfaces/FunctionLayout.tsx
+++ b/studio/pages/project/[ref]/functions/interfaces/FunctionLayout.tsx
@@ -8,6 +8,7 @@ import React, { useEffect } from 'react'
import { useRouter } from 'next/router'
import Link from 'next/link'
import WarningBanner from 'components/ui/WarningBanner'
+import { WARNING_MESSAGE } from './Functions.Constants'
const PageLayout = ({ children }: { children?: React.ReactNode }) => {
const { functions, ui } = useStore()
@@ -36,10 +37,7 @@ const PageLayout = ({ children }: { children?: React.ReactNode }) => {
return (
<BaseLayout>
- <WarningBanner
- title={' Supabase Functions is a pre release version'}
- description={'We do advise you use Supabase Functions in production at this time'}
- />
+ <WarningBanner title={WARNING_MESSAGE.title} description={WARNING_MESSAGE.description} />
<div className="h-full flex flex-col flex-grow py-10">
<div
diff --git a/studio/pages/project/[ref]/functions/interfaces/Functions.Constants.ts b/studio/pages/project/[ref]/functions/interfaces/Functions.Constants.ts
new file mode 100644
index 00000000000..5f8be838045
--- /dev/null
+++ b/studio/pages/project/[ref]/functions/interfaces/Functions.Constants.ts
@@ -0,0 +1,4 @@
+export const WARNING_MESSAGE = {
+ title: ' Supabase Functions is pre release',
+ description: 'Functions are currently experimental, and will be prone to breaking changes',
+}
diff --git a/studio/pages/project/[ref]/functions/interfaces/FunctionsLayout.tsx b/studio/pages/project/[ref]/functions/interfaces/FunctionsLayout.tsx
index 3418f5c409e..a455bd69ff1 100644
--- a/studio/pages/project/[ref]/functions/interfaces/FunctionsLayout.tsx
+++ b/studio/pages/project/[ref]/functions/interfaces/FunctionsLayout.tsx
@@ -7,6 +7,7 @@ import FunctionsNav from '../interfaces/FunctionsNav'
import React, { useEffect } from 'react'
import { useRouter } from 'next/router'
import WarningBanner from 'components/ui/WarningBanner'
+import { WARNING_MESSAGE } from './Functions.Constants'
const PageLayout = ({ children, centered }: { children?: React.ReactNode; centered?: boolean }) => {
const { functions, ui } = useStore()
@@ -28,10 +29,7 @@ const PageLayout = ({ children, centered }: { children?: React.ReactNode; center
return (
<BaseLayout>
- <WarningBanner
- title={' Supabase Functions is a pre release version'}
- description={'We do advise you use Supabase Functions in production at this time'}
- />
+ <WarningBanner title={WARNING_MESSAGE.title} description={WARNING_MESSAGE.description} />
{centered ? (
<>
<div className="mx-auto max-w-5xl py-32 px-5">