Chore: force Zod v3, replace deprecated Supabase vars in local dev, updated Dev Tool (#425)
* - Replaced Supabase local environment variables - Updates packages - Force Zod v3 if peer deps require Zod v4 - Updated Dev Tool * Use correct field for pnpm overrides * Fix inaccuracies in the Agents files; fix type casting in `useForm` * Updated lock file * Be more specific when intercepting POST request in flaky e2e test
This commit is contained in:
committed by
GitHub
parent
cba62d21ae
commit
9681e1f90b
@@ -95,8 +95,7 @@ class ConnectivityService {
|
||||
try {
|
||||
const response = await fetch(endpoint, {
|
||||
headers: {
|
||||
apikey,
|
||||
Authorization: `Bearer ${adminKey}`,
|
||||
apikey: adminKey,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -73,36 +73,51 @@ function EnvListDisplay({
|
||||
}
|
||||
>
|
||||
<div className="bg-muted/50 sticky top-0 flex flex-col gap-y-1 rounded-lg p-4">
|
||||
<div className={'sticky top-0 h-full overflow-auto pb-16 break-all'}>
|
||||
<div
|
||||
className={
|
||||
'sticky top-0 flex h-full flex-col overflow-auto pb-16 break-all'
|
||||
}
|
||||
>
|
||||
{groups.map((group) => (
|
||||
<div className="mb-4" key={group.category}>
|
||||
<span># {group.category}</span>
|
||||
|
||||
{group.variables.map((variable) => {
|
||||
const model = envVariables.find(
|
||||
(item) => item.name === variable.key,
|
||||
);
|
||||
<div className="flex flex-col gap-y-1">
|
||||
{group.variables.map((variable) => {
|
||||
const model = envVariables.find(
|
||||
(item) => item.name === variable.key,
|
||||
);
|
||||
|
||||
const isSecret = model?.secret;
|
||||
const value =
|
||||
isSecret && hideSecret
|
||||
? '••••••••'
|
||||
: variable.effectiveValue;
|
||||
const isSecret = model?.secret;
|
||||
|
||||
return (
|
||||
<Link
|
||||
href={`#var_${variable.key.toLowerCase()}`}
|
||||
className={cn('block transition-all hover:underline', {
|
||||
['text-orange-500']: variable.isOverridden,
|
||||
['text-destructive']: !variable.validation.success,
|
||||
['opacity-20']: !variable.isVisible,
|
||||
})}
|
||||
key={variable.key}
|
||||
>
|
||||
<span>{variable.key}</span>: {value}
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
const value =
|
||||
isSecret && hideSecret
|
||||
? '••••••••'
|
||||
: variable.effectiveValue;
|
||||
|
||||
return (
|
||||
<Link
|
||||
href={`#var_${variable.key.toLowerCase()}`}
|
||||
className={cn(
|
||||
'hover:bg-accent block p-px transition-all',
|
||||
{
|
||||
['text-orange-500']: variable.isOverridden,
|
||||
['text-destructive']: !variable.validation.success,
|
||||
['opacity-20']: !variable.isVisible,
|
||||
},
|
||||
)}
|
||||
key={variable.key}
|
||||
>
|
||||
<b>{variable.key}</b>:{' '}
|
||||
{value && (
|
||||
<span className={'bg-muted rounded p-0.5'}>
|
||||
{value}
|
||||
</span>
|
||||
)}
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -411,7 +411,6 @@ export const envVariables: EnvVariableModel[] = [
|
||||
name: 'NEXT_PUBLIC_SUPABASE_ANON_KEY',
|
||||
description: 'Your Supabase anonymous API key.',
|
||||
category: 'Supabase',
|
||||
required: true,
|
||||
type: 'string',
|
||||
deprecated: {
|
||||
reason: 'Replaced by new JWT signing key system',
|
||||
@@ -450,7 +449,6 @@ export const envVariables: EnvVariableModel[] = [
|
||||
description: 'Your Supabase service role key (keep this secret!).',
|
||||
category: 'Supabase',
|
||||
secret: true,
|
||||
required: true,
|
||||
type: 'string',
|
||||
deprecated: {
|
||||
reason: 'Renamed for consistency with new JWT signing key system',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"clean": "git clean -xdf .next .turbo node_modules",
|
||||
"dev": "next dev --port=3010 | pino-pretty -c",
|
||||
"dev": "next dev --port=3011 | pino-pretty -c",
|
||||
"format": "prettier --check --write \"**/*.{ts,tsx}\" --ignore-path=\"../../.prettierignore\""
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -13,7 +13,7 @@
|
||||
"@hookform/resolvers": "^5.2.2",
|
||||
"@tanstack/react-query": "catalog:",
|
||||
"ai": "5.0.108",
|
||||
"lucide-react": "^0.556.0",
|
||||
"lucide-react": "^0.561.0",
|
||||
"next": "catalog:",
|
||||
"nodemailer": "^7.0.11",
|
||||
"react": "catalog:",
|
||||
@@ -29,7 +29,7 @@
|
||||
"@kit/shared": "workspace:*",
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@kit/ui": "workspace:*",
|
||||
"@tailwindcss/postcss": "^4.1.17",
|
||||
"@tailwindcss/postcss": "^4.1.18",
|
||||
"@types/node": "catalog:",
|
||||
"@types/nodemailer": "7.0.4",
|
||||
"@types/react": "catalog:",
|
||||
|
||||
Reference in New Issue
Block a user