Skip to content

fix(supabase): ✨ add Supabase Storage adapter and update dependencies#707

Merged
aXenDeveloper merged 1 commit into
canaryfrom
fix/supabase_connection_vercel
Jul 8, 2026
Merged

fix(supabase): ✨ add Supabase Storage adapter and update dependencies#707
aXenDeveloper merged 1 commit into
canaryfrom
fix/supabase_connection_vercel

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vitnode-docs Building Building Preview, Comment Jul 8, 2026 6:36pm

@aXenDeveloper aXenDeveloper merged commit 9fdf39b into canary Jul 8, 2026
3 of 5 checks passed
@aXenDeveloper aXenDeveloper deleted the fix/supabase_connection_vercel branch July 8, 2026 18:36
@github-actions github-actions Bot added the 🐞 Bug Something isn't working label Jul 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the @vitnode/supabase-storage package into the documentation app, replacing the local storage adapter with the Supabase storage adapter configured via environment variables. Feedback suggests using non-null assertions (!) on the environment variables to prevent potential TypeScript compilation errors when strictNullChecks is enabled.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +62 to +66
adapter: SupabaseStorageAdapter({
url: process.env.SUPABASE_URL,
secretKey: process.env.SUPABASE_SECRET_KEY,
bucket: process.env.SUPABASE_STORAGE_BUCKET,
}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Passing process.env variables directly can lead to TypeScript compilation errors if strictNullChecks is enabled, as they are typed as string | undefined but the adapter likely expects string. Using non-null assertions (!) ensures type safety and prevents compilation issues.

Suggested change
adapter: SupabaseStorageAdapter({
url: process.env.SUPABASE_URL,
secretKey: process.env.SUPABASE_SECRET_KEY,
bucket: process.env.SUPABASE_STORAGE_BUCKET,
}),
adapter: SupabaseStorageAdapter({
url: process.env.SUPABASE_URL!,
secretKey: process.env.SUPABASE_SECRET_KEY!,
bucket: process.env.SUPABASE_STORAGE_BUCKET!,
}),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant