Skip to main content

Lovable: Integrate the backend with Supabaseの概要

接続あなたのアプリ to a PostgreSQL database with authentication, ファイル storage, リアルタイム updates, and edge functions

Supabase 連携 overview

デザインあなたの UI and database in one place

Lovable's native Supabase 連携 lets あなた管理 both あなたの front-end UI and あなたの back-end database through a single, easy-to-use チャット interface. In other words, あなた can デザインあなたの app's screens and set up a cloud PostgreSQL database without leaving Lovable. This unified approach makes powerful アプリ development accessible to everyone – non‑technical ユーザー can rely on Lovable's guidance, while experienced developers can tap into 詳細 Supabase features as needed.

本番対応の backend without the setup

Supabase is an open-source alternative to Firebase, providing a hosted PostgreSQL database with リアルタイム capabilities, ユーザー authentication, ファイル storage, and serverless functions. By connecting Supabase to あなたの Lovable アプリ, あなた instantly gain a 本番対応の backend without writing any boilerplate コード or manually configuring servers. Supabase's intuitive web ダッシュボード makes it easy to 管理あなたのデータ and ユーザー, and its robust SQL foundation means あなた retain the full power and scalability of a PostgreSQL database.

Why use Lovable's Supabase 連携?

With Lovable, あなた don't have to juggle separate ツール for front-end デザイン and back-end setup. By simply conversing with Lovable's AI, あなた can 作成あなたの UI and have the underlying database and server functions 作成済み for あなた automatically. This means faster development and fewer 連携 headaches. For 例, if あなた prompt Lovable with “追加 a ユーザー feedback form and 保存 responses to the database,” Lovable will 生成 the form UI and set up a Supabase table to store the feedback – すべて in one 移動. This seamless end-to-end generation is Lovable's unique strength, empowering beginners to 作成 complex アプリ and allowing power ユーザー to move faster.

Key featuresの概要

Here's what you'll unlock with Supabase 連携

Database (PostgreSQL)の概要

Store and query あなたのアプリデータ with full SQL サポート. Lovable can automatically 生成 the necessary tables and schema based on あなたの prompts.

ユーザー authentication

Securely 管理ユーザー sign-ups, logins, and access control. Lovable can 追加 pre-built authentication flows (メール/パスワード, etc.) to あなたのアプリ with a simple prompt.

ファイル storage

アップロード and serve 画像 or other ファイル via Supabase Storage. Great for ユーザー プロフィール photos, uploads, or any static media あなたのアプリ needs to handle.

リアルタイム updates

Supabase can stream 公開中データ変更 to あなたのアプリ. This enables features like 公開中チャット, activity feeds, or collaborative dashboards that 更新 instantly for すべてユーザー.

Edge functions (serverless)の概要

Run カスタム backend logic (in JavaScript/TypeScript) on Supabase's infrastructure. Lovable will 作成してデプロイ these functions for tasks like sending emails, processing payments, or integrating with external APIs.

よくある質問

What does the Supabase 連携 actually do for me?

It gives あなたの Lovable アプリ a fully managed backend. Without it, Lovable can still 作成あなたの UI, but you'd have nowhere to persist データ or 管理ユーザー out-of-the-box. With Supabase 接続済み, Lovable can 作成ユーザー accounts (authentication), store and retrieve データ in a database, アップロードファイル, run server-side コード, and more – すべて automatically. Essentially, Supabase provides the databases and servers behind あなたのアプリ, and Lovable drives it through prompts.

LovableでDo I need separate accounts for Lovable and Supabase?

はい. Lovable and Supabase は two separate platforms. あなた will need an アカウント on Supabase (to host あなたの database) in addition to あなたの Lovable アカウント. The good news is both have 無料 tiers, so あなた can 始める without any cost. Just remember that if あなた later アップグレード for more 使用量 or features, you'd handle 請求 for each service individually.

How do I 接続 Lovable with Supabase?

In the Lovable エディター, 移動 to the 連携 section. Click 接続 to Supabase and follow the authentication steps. If needed, 作成 a 新規 Supabase プロジェクト within Lovable. Lovable will automatically 生成 the necessary database schema and 接続 it to あなたのプロジェクト.

Can I integrate my Supabase-connected Lovable アプリ with external automation ツール?

Absolutely. When あなた use Lovable + Supabase, あなたのデータ lives in Supabase's database and Supabase also provides auto-generated RESTful APIs for あなたの tables (as well as a client library). This means あなた can use ツール like Zapier, Make.com, or any other service to interact with あなたの app's backend データ via HTTP requests. For 例, Zapier could fetch or 追加 records to a Supabase table of あなたのアプリ. Additionally, あなた can 作成カスタム API endpoints using Supabase Edge Functions (which Lovable can help 作成) to trigger more complex workflows. In short, integrating with third-party automation services is doable – it just might involve a bit of configuration with Supabase's APIキー or webhooks.

How scalable is Supabase for when my アプリ grows?

Supabase is 作成済み on PostgreSQL, which can handle large amounts of データ and high traffic. Out of the box, あなたの無料 database can handle a decent workload (millions of rows, multiple 接続). As あなたの needs grow, あなた can アップグレードあなたの Supabase プラン for more storage, throughput, and features. Many production アプリ run entirely on Supabase, so you're in good hands. Just be mindful of the 使用量 limits on the 無料 tier (which Supabase documents on their site) and プラン to scale up if あなた approach those limits.

How can I 追加リアルタイム features like a チャット or 公開中 feed to my アプリ?

Supabase has built-in リアルタイムサブスクリプション on あなたの database. This means あなたのアプリ can listen for 変更 (inserts, updates, deletes) on specific tables and react instantly. To leverage this, あなた would デザインあなたの Lovable アプリ feature as usual (e.g. a チャット room that writes メッセージ to a メッセージ table). Lovable knows について Supabase's リアルタイム capabilities, so it can set up the front-end to subscribe to that table's 変更. In practice, after you've 作成済み a table for, say, チャットメッセージ, あなた can prompt Lovable to “有効化リアルタイム updates for the チャット” and it will use Supabase's リアルタイム API under the hood. ユーザー will then see 新規メッセージ appear 公開中 without needing to refresh. This works for any scenario where 公開中 updates は useful (コメント, 通知, dashboards, etc.).

Is there a limit to ファイル uploads with Supabase storage?

On the 無料 tier, Supabase limits individual ファイルアップロード size to 50MB. This covers most use cases like 画像, audio, or short videos. If あなた need to handle larger ファイル (such as lengthy videos or large datasets), upgrading to a paid プラン enables larger and even resumable uploads. Also note there's an overall storage quota per プロジェクト (e.g. how many total GB あなた can store) that increases with higher プラン.

LovableでHow do I configure authentication in Supabase?

Lovable automatically sets up authentication, but あなた may need to: 移動 to Supabase ダッシュボード > Authentication. 有効化メール Sign-in/Sign-up. 無効化メール confirmation for easier local testing.

Can I use one Supabase database for multiple Lovable プロジェクト?

はい, あなた can. あなた might 作成 multiple front-end applications in Lovable that すべて接続 to the same Supabase プロジェクト (and thus 共有 the same database and 認証). This is 詳細, but it's possible – for 例, a main アプリ and an 管理者ダッシュボード as separate Lovable プロジェクト using one common database. When connecting Supabase in each プロジェクト, just 選択 the same Supabase プロジェクト. Keep in mind すべて those アプリ will read/write the same データ, so デザイン accordingly.

What if I want to テスト変更 to my database without affecting the 公開中アプリ?

At the moment, each Lovable プロジェクト connects to one Supabase プロジェクト, and Lovable doesn't have a built-in staging mode. If あなた want a safe playground to experiment, Supabase offers a feature called Branching which lets あなた作成 a temporary コピー of あなたの database (like a git ブランチ) to テスト変更. あなた could 接続 a separate Lovable プロジェクト to a ブランチ or 複製 of あなたの database for testing. In general, for serious プロジェクト you'd use caution making schema 変更 on a 公開中アプリ – perhaps 作成 a backup or use branching, then merge 変更 when ready. Lovable's 連携 is evolving, so future updates might introduce more seamless staging workflows.

Does Supabase or Lovable help me write カスタム SQL or database logic?

はい. Supabase's web interface includes an AI SQL Assistant that can 生成 SQL queries から natural 言語. So if あなた need a complex query or は not comfortable writing SQL, あなた can try that ツール in the Supabase SQL エディター. On Lovable's side, あなた typically don't need to hand-write SQL at すべて – the AI handles most of the schema creation and queries for あなた. But if you're an 詳細ユーザー and want to do something カスタム, あなた can always use Lovable's GitHub 連携 to inspect or 編集 the コード, or run raw SQL on the database as needed.

How do I handle payments in my Lovable アプリ?

Payments は handled via 連携 like Stripe, which あなた can use in conjunction with Supabase Edge Functions. For instance, あなた might prompt Lovable: “追加 a チェックアウトボタン and process payments with Stripe.” Lovable would then 作成 an Edge Function that talks to Stripe's API (using あなたの Stripe シークレット key stored as a シークレット) and perhaps store the transaction 詳細 in あなたの Supabase database. The UI would be 更新済み to include the チェックアウト/pay ボタン. Essentially, Supabase provides the environment (Edge Functions, database) to implement payments, and Lovable can scaffold the コード for あなた. For more 詳細, あなた can also refer to the Stripe & Payments 連携 guide in Lovable's documentation, which covers setting up Stripe specifically.