This guide helps all users—new or experienced—get up to speed quickly and avoid common pitfalls when building on Lovable.
1. Set your foundation: Use the knowledge file
Why it matters: The Knowledge file is your project’s brain. It gets sent with every prompt and helps the AI understand the full context.What to include:
Clear, verbose prompts = better output. Think of the AI like your engineering partner—it only knows what you tell it.Prompting tips:
Be specific: Mention the exact page (e.g. /dashboard) and expected behavior.
Use natural language
I want users with the role Investor to access this component, but not Admins.
Add screenshots: Especially useful for describing bugs or UX issues.
Add guardrails: Tell the AI what not to touch. E.g.
Do not edit /shared/Layout.tsx.
Repeat important instructions across prompts. The AI’s memory can be limiting.
Avoid trying to implement 5 things at once. Break work into smaller, testable chunks. Use Chat Mode between each block to validate before moving on.
**Feature Breakdown Template:**Create the new pageAdd UI layoutConnect the dataAdd logic + edge casesTest per role
If your app has multiple roles (e.g. Admin, Investor, Startup), always define which role the prompt applies to. This helps avoid bugs caused by shared logic/components.
As an Investor, I want to view the company dashboard, but I shouldn’t be able to edit it. Please isolate this feature to the Investor role only.
3. Use chat mode early and often
Chat mode = your AI co-pilot. It helps you debug, brainstorm, and plan implementations—without editing your code until you’re ready.When to switch to Chat Mode:
After 2–3 failed “Try to Fix” attempts
When debugging complex logic or database issues
When planning new features
Suggest 3 ways to implement X
Workflow tip:Some users like to use Chat Mode for 60–70% of your time. Only click “Implement the plan” when you’re fully satisfied.
If you forget using the Chat mode, this format improves output consistency and prevents collateral edits.
On page /settings, implement [feature]. The expected behavior is [XYZ]. Please don’t touch component A, layout B, or shared logic unless necessary. Follow best practices from Tailwind / Supabase / X.
To avoid unwanted code execution:
Investigate but don’t write code yet.
Suggest 3 ways to solve this without changing anything.
This keeps control in your hands.
When AI enters a “loop,” use this sequence to avoid endless cycles of patching broken code:
Switch to Chat mode
Paste the error screenshot
Say:
Please investigate this without breaking other features. If needed, revert to the last working version and fix from there.
4. Avoid common pitfalls with Supabase
Heads-up:Supabase does not revert cleanly. If you revert a version, your database schema may break.Best practices:
Connect Supabase after front-end is stable
If you must revert, prompt the AI:
Please validate the SQL schema at T=0 and ensure no breaking changes have occurred.
Always test database-linked features before publishing
5. Use Visual Edit for quick UI fixes
The Visual Edit tool is free and fast. Use it instead of prompts for:
Every edit is a commit. Use pinning to mark stable versions. After every working feature: Pin it
After every bug: Compare versions visually. You can prompt with:
Compare version at T–1 to T–0. What changed? What might be breaking?
Come back to a stable version if you feel the AI has broken too much things.
Use GitHub branching at your own risk. Avoid deleting branches before switching back to main in Lovable to prevent project sync issues.
7. When all else fails, remix
Many users realize: doing it all over takes less time the second time.
Remix creates a clean copy of your project at T=0.
Rebuild with better prompting + clearer knowledge
Use your old project as reference only
Use cases:
You’re stuck in a buggy loop
You want to restart clean with preserved history
You need to disconnect Superbase and try a new path
Remixing requires disconnecting Superbase first.
8. Stay patient, stay calm
You’re not alone. AI can be magical one moment and frustrating the next. The final 5% of any build is often the slowest—but the most important.
Golden rule:Take your time with prompts. Re-check everything. Break work into small, testable blocks. The more precise your inputs, the better your outputs.
9. Use the docs and ask for help
Documentation contains walkthroughs, templates, SEO tips, integrations, and more. You can ask questions directly in the doc AI assistant.
Add a voice note prompt using dictation (e.g. On Mac, use the mic to dictate long prompts) for long prompts. You’ll craft better input faster—especially useful when frustrated or tired.
Use the “I am frustrated…” prompt pattern to nudge better AI focus
After a major edit, always recheck multiple roles and their behavior (especially with conditional logic)
Store stable versions as fallbacks for quick debugging
If you’re seeing unexpected side effects, this helps avoid bugs caused by overly generic logic.
Create a component specifically for [role X] and do not reuse shared components unless clearly scoped.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lovable Documentation","description":"Lovable Documentation — Build full-stack websites with AI using natural language. Explore Lovable features, integrations, tutorials, and best practices.","colors":{"primary":"#0095FF","light":"#1AA3FF","dark":"#0084E6"},"logo":{"light":"https://mintcdn.com/generaltranslation-d8a08cd1/At48MABj-G93zw7Y/assets/logo/logoblack.svg?fit=max\u0026auto=format\u0026n=At48MABj-G93zw7Y\u0026q=85\u0026s=ca1f70ffb8cc99cf980d91ff6495d89f","dark":"https://mintcdn.com/generaltranslation-d8a08cd1/At48MABj-G93zw7Y/assets/logo/logowhite.svg?fit=max\u0026auto=format\u0026n=At48MABj-G93zw7Y\u0026q=85\u0026s=fef50f97d61a559e9cd2e1e8995e6350","href":"https://lovable.dev/"},"favicon":"/assets/logo/favicon.ico","navbar":{"links":[{"label":"Support","icon":"message","href":"https://lovable.dev/support"},{"label":"Blog","icon":"blog","href":"https://lovable.dev/blog"}]},"footer":{"socials":{"x":"https://x.com/Lovable","github":"https://github.com/lovablelabs","linkedin":"https://linkedin.com/company/lovable-dev","youtube":"https://youtube.com/@lovable","discord":"https://discord.gg/lovable-dev","reddit":"https://www.reddit.com/r/lovable/"}},"seo":{"metatags":{"og:image":"/assets/logo/opengraph-image.png","canonical":"https://docs.lovable.dev"},"indexing":"all"},"contextual":{"options":["copy"]},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"introduction/welcome"},{"language":"es","href":"es/introduction/welcome"},{"language":"ja","href":"ja/introduction/welcome"},{"language":"zh","href":"zh/introduction/welcome"},{"language":"fr","href":"fr/introduction/welcome"},{"language":"de","href":"de/introduction/welcome"},{"language":"pt-BR","href":"pt-BR/introduction/welcome"},{"language":"it","href":"it/introduction/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"generaltranslation-d8a08cd1","hasAudioNarration":false,"actualSubdomain":"generaltranslation-d8a08cd1","customDomains":["lovable.generaltranslation.app"],"gitSource":{"type":"github","owner":"gt-onboarding","repo":"lovable","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10c7a59ffae5051c40799f"},"entitlements":{},"buildId":"6ae942e94c7ebc4d7c1907d3:success","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"en","tag":"Integrations","count":22},{"language":"de","tag":"Integrationen","count":22},{"language":"es","tag":"Integraciones","count":22},{"language":"fr","tag":"Intégrations","count":22},{"language":"it","tag":"Integrazioni","count":22},{"language":"ja","tag":"連携","count":22},{"language":"pt-BR","tag":"Integrações","count":22},{"language":"zh","tag":"集成","count":22},{"language":"en","tag":"Features","count":16},{"language":"de","tag":"Funktionen","count":16},{"language":"es","tag":"Funciones","count":16},{"language":"fr","tag":"Fonctionnalités","count":16},{"language":"it","tag":"Funzionalità","count":16},{"language":"ja","tag":"機能","count":16},{"language":"pt-BR","tag":"Funcionalidades","count":16},{"language":"zh","tag":"功能特性","count":16},{"language":"en","tag":"Tips \u0026 Tricks","count":11},{"language":"de","tag":"Tipps \u0026 Tricks","count":11},{"language":"es","tag":"Consejos y trucos","count":11},{"language":"fr","tag":"Conseils et astuces","count":11},{"language":"it","tag":"Consigli e trucchi","count":11},{"language":"ja","tag":"ヒントとテクニック","count":11},{"language":"pt-BR","tag":"Dicas e truques","count":11},{"language":"zh","tag":"提示和技巧","count":11},{"language":"en","tag":"Introduction","count":4},{"language":"de","tag":"Einführung","count":4},{"language":"es","tag":"Introducción","count":4},{"language":"fr","tag":"Introduction","count":4},{"language":"it","tag":"Introduzione","count":4},{"language":"ja","tag":"はじめに","count":4},{"language":"pt-BR","tag":"Introdução","count":4},{"language":"zh","tag":"简介","count":4},{"language":"en","tag":"Prompt engineering","count":3},{"language":"de","tag":"Engineering von Eingabeaufforderungen","count":3},{"language":"es","tag":"Ingeniería de instrucciones","count":3},{"language":"fr","tag":"Conception de Prompt","count":3},{"language":"it","tag":"Ingegneria delle istruzioni","count":3},{"language":"ja","tag":"プロンプトエンジニアリング","count":3},{"language":"pt-BR","tag":"Engenharia de Prompts de IA","count":3},{"language":"zh","tag":"提示工程","count":3},{"language":"en","tag":"About integrations","count":2},{"language":"en","tag":"Use cases","count":2},{"language":"de","tag":"Über Integrationen","count":2},{"language":"de","tag":"Anwendungsfälle","count":2},{"language":"es","tag":"Sobre las integraciones","count":2},{"language":"es","tag":"Casos de uso","count":2},{"language":"fr","tag":"À propos des intégrations","count":2},{"language":"fr","tag":"Cas d’utilisation","count":2},{"language":"it","tag":"Informazioni sulle integrazioni","count":2},{"language":"it","tag":"Casi d'uso","count":2},{"language":"ja","tag":"連携について","count":2},{"language":"ja","tag":"ユースケース","count":2},{"language":"pt-BR","tag":"Sobre as integrações","count":2},{"language":"pt-BR","tag":"Casos de uso","count":2},{"language":"zh","tag":"关于集成","count":2},{"language":"zh","tag":"应用场景","count":2},{"language":"en","tag":"Changelog","count":1},{"language":"en","tag":"Glossary","count":1},{"language":"de","tag":"Versionshinweise","count":1},{"language":"de","tag":"Glossar","count":1},{"language":"es","tag":"Registro de cambios","count":1},{"language":"es","tag":"Glosario","count":1},{"language":"fr","tag":"Journal des mises à jour","count":1},{"language":"fr","tag":"Glossaire","count":1},{"language":"it","tag":"Cronologia delle modifiche","count":1},{"language":"it","tag":"Glossario","count":1},{"language":"ja","tag":"変更履歴","count":1},{"language":"ja","tag":"用語集","count":1},{"language":"pt-BR","tag":"Registro de alterações","count":1},{"language":"pt-BR","tag":"Glossário","count":1},{"language":"zh","tag":"更新日志","count":1},{"language":"zh","tag":"术语表","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"assets/css/styles.css","content":".supabase{color:#59cf8c}"}]}
{"page":{"pagePath":"tips-tricks/best-practice","slug":"/tips-tricks/best-practice","pageMetadata":{"title":"Best practices","description":"Getting the Most Out of Lovable","icon":"dumbbell","href":"/tips-tricks/best-practice","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Getting the Most Out of Lovable\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This guide helps all users—new or experienced—get up to speed quickly and avoid common pitfalls when building on Lovable.`}),`\n`,_jsx(Heading,{level:`2`,id:`1-set-your-foundation-use-the-knowledge-file`,children:`1. Set your foundation: Use the knowledge file`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Why it matters:`}),` The `,_jsx(_components.a,{href:`/features/knowledge`,children:`Knowledge`}),` file is your project’s brain. It gets sent with every prompt and helps the AI understand the full context.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What to include:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Your product vision (think of it like a PRD)`}),`\n`,_jsx(_components.li,{children:`User journeys and personas`}),`\n`,_jsx(_components.li,{children:`Key features and functionality`}),`\n`,_jsx(_components.li,{children:`Design systems and UI guidance`}),`\n`,_jsx(_components.li,{children:`Role-specific behavior (e.g. Admin, User, Investor)`}),`\n`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`You can auto-generate a Knowledge file via Chat mode:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Generate knowledge for my project at T=0 based on the features I’ve already implemented.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsxs(Heading,{level:`2`,id:`2-prompting-best-practices`,children:[`2. `,_jsx(_components.a,{href:`/prompting/prompting-one`,children:`Prompting`}),` Best practices`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Clear, verbose prompts = better output.`}),` Think of the AI like your engineering partner—it only knows what you tell it.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Prompting tips:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Be specific: Mention the exact page (e.g. `,_jsx(_components.code,{children:`/dashboard`}),`) and expected behavior.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Use natural language`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I want users with the role Investor to access this component, but not Admins.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add screenshots: Especially useful for describing bugs or UX issues.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Add guardrails: Tell the AI what `,_jsx(_components.strong,{children:`not`}),` to touch. E.g.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Do not edit /shared/Layout.tsx.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Repeat important instructions across prompts. The AI’s memory can be limiting.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Avoid trying to implement 5 things at once. Break work into smaller, testable chunks. Use Chat Mode between each block to validate before moving on.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`**Feature Breakdown Template:**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Create the new page`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add UI layout`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Connect the data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add logic + edge cases`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Test per role`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If your app has multiple roles (e.g. Admin, Investor, Startup), always define `,_jsx(_components.em,{children:`which role`}),` the prompt applies to. This helps avoid bugs caused by shared logic/components.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`As an Investor, I want to view the company dashboard, but I shouldn’t be able to edit it. Please isolate this feature to the Investor role only.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-use-chat-mode-early-and-often`,children:`3. Use chat mode early and often`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://docs.lovable.dev/features/labs#chat-mode`,children:_jsx(_components.strong,{children:`Chat mode`})}),` = your AI co-pilot. It helps you debug, brainstorm, and plan implementations—without editing your code until you’re ready.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`When to switch to Chat Mode:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`After 2–3 failed “Try to Fix” attempts`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`When debugging complex logic or database issues`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`When planning new features`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Suggest 3 ways to implement X`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Workflow tip:`})}),_jsx(_components.p,{children:`Some users like to use Chat Mode for 60–70% of your time. Only click “Implement the plan” when you’re fully satisfied.`})]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`If you forget using the Chat mode, this format improves output consistency and prevents collateral edits.`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`On page /settings, implement [feature]. The expected behavior is [XYZ]. Please don’t touch component A, layout B, or shared logic unless necessary. Follow best practices from Tailwind / Supabase / X.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`To avoid unwanted code execution:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Investigate but don’t write code yet.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Suggest 3 ways to solve this without changing anything.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`This keeps control in your hands.`})]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`When AI enters a “loop,” use this sequence to avoid endless cycles of patching broken code:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Switch to Chat mode`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Paste the error screenshot`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Say:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Please investigate this without breaking other features. If needed, revert to the last working version and fix from there.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`4-avoid-common-pitfalls-with-supabase`,children:`4. Avoid common pitfalls with Supabase`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Heads-up:`}),` `,_jsx(_components.a,{href:`https://docs.lovable.dev/integrations/supabase`,children:`Supabase`}),` does not revert cleanly. If you revert a version, your database schema may break.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Best practices:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Connect Supabase `,_jsx(_components.strong,{children:`after`}),` front-end is stable`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`If you must revert, prompt the AI:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Please validate the SQL schema at T=0 and ensure no breaking changes have occurred.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Always test database-linked features before publishing`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`5-use-visual-edit-for-quick-ui-fixes`,children:`5. Use Visual Edit for quick UI fixes`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://docs.lovable.dev/features/visual-edit`,children:_jsx(_components.strong,{children:`Visual Edit tool`})}),` is free and fast. Use it instead of prompts for:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Changing text, colors, fonts, layout tweaks`}),`\n`,_jsx(_components.li,{children:`Editing multiple small elements at once`}),`\n`,_jsx(_components.li,{children:`Safe, credit-free commits (with undo available)`}),`\n`]}),`\n`,_jsxs(Heading,{level:`2`,id:`6-use-github-+-version-control-wisely`,children:[`6. Use `,_jsx(_components.a,{href:`https://docs.lovable.dev/integrations/git-integration`,children:`GitHub`}),` + version control wisely`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Every edit is a commit. Use `,_jsx(_components.strong,{children:`pinning`}),` to mark stable versions. After every working feature: `,_jsx(_components.strong,{children:`Pin it`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`After every bug: `,_jsx(_components.strong,{children:`Compare versions visually.`}),` You can prompt with:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Compare version at T–1 to T–0. What changed? What might be breaking?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Come back to a stable version if you feel the AI has broken too much things.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.strong,{children:`GitHub branching`}),` at your own risk. Avoid deleting branches before switching back to `,_jsx(_components.code,{children:`main`}),` in Lovable to prevent project sync issues.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`7-when-all-else-fails-remix`,children:`7. When all else fails, remix`}),`\n`,_jsx(_components.p,{children:`Many users realize: doing it all over takes less time the second time.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://docs.lovable.dev/user-guides/quickstart#remix-an-existing-project:~:text=you%20to%20reuse-,the,-current%20state%20of`,children:`Remix`}),` creates a clean copy of your project at T=0.`]}),`\n`,_jsx(_components.li,{children:`Rebuild with better prompting + clearer knowledge`}),`\n`,_jsx(_components.li,{children:`Use your old project as reference only`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use cases:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`You’re stuck in a buggy loop`}),`\n`,_jsx(_components.li,{children:`You want to restart clean with preserved history`}),`\n`,_jsx(_components.li,{children:`You need to disconnect Superbase and try a new path`}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Remixing requires disconnecting Superbase first.`})}),`\n`,_jsx(Heading,{level:`2`,id:`8-stay-patient-stay-calm`,children:`8. Stay patient, stay calm`}),`\n`,_jsx(_components.p,{children:`You’re not alone. AI can be magical one moment and frustrating the next. The final 5% of any build is often the slowest—but the most important.`}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Golden rule:`})}),_jsx(_components.p,{children:`Take your time with prompts. Re-check everything. Break work into small, testable blocks. The more precise your inputs, the better your outputs.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`9-use-the-docs-and-ask-for-help`,children:`9. Use the docs and ask for help`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://docs.lovable.dev`,children:`Documentation`}),` contains walkthroughs, templates, SEO tips, integrations, and more. You can ask questions directly in the doc AI assistant.`]}),`\n`,_jsxs(_components.li,{children:[`Join the `,_jsx(_components.a,{href:`https://discord.gg/lovable-dev`,children:`Discord community`}),` for peer support.`]}),`\n`,_jsxs(_components.li,{children:[`When ready, submit your project to `,_jsx(_components.a,{href:`https://docs.lovable.dev/features/launched`,children:`Lovable Launch`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`10-bonus-tips`,children:`10. Bonus tips`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add a voice note prompt using dictation (e.g. On Mac, use the mic to dictate long prompts) for long prompts. You’ll craft better input faster—especially useful when frustrated or tired.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Use the “`,_jsx(_components.code,{children:`I am frustrated…`}),`” prompt pattern to nudge better AI focus`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`After a major edit, always recheck multiple roles and their behavior (especially with conditional logic)`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Store stable versions as fallbacks for quick debugging`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`If you’re seeing unexpected side effects, this helps avoid bugs caused by overly generic logic.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Create a component specifically for [role X] and do not reuse shared components unless clearly scoped.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Best practices","description":"Getting the Most Out of Lovable","icon":"dumbbell","href":"/tips-tricks/best-practice","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Set your foundation: Use the knowledge file","slug":"1-set-your-foundation-use-the-knowledge-file","depth":2,"children":[]},{"title":"2. Prompting Best practices","slug":"2-prompting-best-practices","depth":2,"children":[]},{"title":"3. Use chat mode early and often","slug":"3-use-chat-mode-early-and-often","depth":2,"children":[]},{"title":"4. Avoid common pitfalls with Supabase","slug":"4-avoid-common-pitfalls-with-supabase","depth":2,"children":[]},{"title":"5. Use Visual Edit for quick UI fixes","slug":"5-use-visual-edit-for-quick-ui-fixes","depth":2,"children":[]},{"title":"6. Use GitHub + version control wisely","slug":"6-use-github-+-version-control-wisely","depth":2,"children":[]},{"title":"7. When all else fails, remix","slug":"7-when-all-else-fails-remix","depth":2,"children":[]},{"title":"8. Stay patient, stay calm","slug":"8-stay-patient-stay-calm","depth":2,"children":[]},{"title":"9. Use the docs and ask for help","slug":"9-use-the-docs-and-ask-for-help","depth":2,"children":[]},{"title":"10. Bonus tips","slug":"10-bonus-tips","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"generaltranslation-d8a08cd1","siteName":"Lovable Documentation","title":"Best practices - Lovable Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/tips-tricks/best-practice","matchLevel":0},"es":{"href":"/es/tips-tricks/best-practice","matchLevel":1},"ja":{"href":"/ja/tips-tricks/best-practice","matchLevel":1},"zh":{"href":"/zh/tips-tricks/best-practice","matchLevel":1},"fr":{"href":"/fr/tips-tricks/best-practice","matchLevel":1},"de":{"href":"/de/tips-tricks/best-practice","matchLevel":1},"pt-BR":{"href":"/pt-BR/tips-tricks/best-practice","matchLevel":1},"it":{"href":"/it/tips-tricks/best-practice","matchLevel":1}}},"lastModified":"2026-01-25T22:46:33.282Z","originalFileLocation":"tips-tricks/best-practice.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Getting the Most Out of Lovable\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lovable Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Best practices - Lovable Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Getting the Most Out of Lovable\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lovable Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lovable.dev/tips-tricks/best-practice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://generaltranslation-d8a08cd1.mintlify.site/assets/logo/opengraph-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Best practices - Lovable Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Getting the Most Out of Lovable\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://generaltranslation-d8a08cd1.mintlify.site/assets/logo/opengraph-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lovable Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0095FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lovable.dev/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tips-tricks/best-practice.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.lovable.dev/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.lovable.dev/es/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.lovable.dev/ja/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.lovable.dev/zh/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.lovable.dev/fr/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.lovable.dev/de/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.lovable.dev/pt-BR/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.lovable.dev/it/tips-tricks/best-practice\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.lovable.dev/tips-tricks/best-practice\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lovable.dev/#organization\",\"name\":\"Lovable Documentation\",\"url\":\"https://docs.lovable.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/generaltranslation-d8a08cd1/At48MABj-G93zw7Y/assets/logo/logoblack.svg?fit=max\u0026auto=format\u0026n=At48MABj-G93zw7Y\u0026q=85\u0026s=ca1f70ffb8cc99cf980d91ff6495d89f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lovable.dev#website\",\"name\":\"Lovable Documentation\",\"url\":\"https://docs.lovable.dev\",\"publisher\":{\"@id\":\"https://docs.lovable.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lovable.dev/tips-tricks/best-practice#webpage\",\"url\":\"https://docs.lovable.dev/tips-tricks/best-practice\",\"name\":\"Best practices\",\"description\":\"Getting the Most Out of Lovable\",\"dateModified\":\"2026-01-25T22:46:33.282Z\",\"isPartOf\":{\"@id\":\"https://docs.lovable.dev#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.lovable.dev/tips-tricks/best-practice#article\",\"headline\":\"Best practices\",\"name\":\"Best practices\",\"description\":\"Getting the Most Out of Lovable\",\"url\":\"https://docs.lovable.dev/tips-tricks/best-practice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lovable.dev/tips-tricks/best-practice#webpage\"},\"image\":\"https://docs.lovable.dev/assets/logo/opengraph-image.png\",\"dateModified\":\"2026-01-25T22:46:33.282Z\",\"publisher\":{\"@id\":\"https://docs.lovable.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lovable.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lovable Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lovable Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tips-tricks/best-practice.md","siteName":"Lovable Documentation","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/introduction/welcome"}]},{"tab":"Features","pages":[{"title":"Features","href":"/features/modes"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Tips \u0026 Tricks","pages":[{"title":"Best practices","icon":"dumbbell","href":"/tips-tricks/best-practice"},{"title":"Troubleshooting","description":"Actionable steps to resolve issues in your development lifecycle.","icon":"toolbox","href":"/tips-tricks/troubleshooting"},{"title":"Implement SEO and GEO best practices","sidebarTitle":"SEO and GEO best practices","icon":"magnifying-glass","href":"/tips-tricks/seo-geo"},{"title":"Using images in Lovable","icon":"frame","href":"/tips-tricks/using-images"},{"title":"Using videos","icon":"film","href":"/tips-tricks/using-videos"},{"title":"Using custom (Google) fonts","icon":"font","href":"/tips-tricks/custom-fonts"},{"title":"Using npm packages","icon":"box","href":"/tips-tricks/npm-packages"},{"title":"From idea to working app","icon":"screwdriver-wrench","href":"/tips-tricks/from-idea-to-app"},{"title":"Support policy","icon":"life-ring","href":"/tips-tricks/support-policy"},{"title":"Avoiding security pitfalls","icon":"lock","href":"/tips-tricks/avoiding-security-pitfalls"},{"title":"Self-hosting: Run your Lovable Cloud project anywhere","sidebarTitle":"Self-hosting","icon":"door-open","href":"/tips-tricks/self-hosting"}]},{"tab":"Prompt engineering","pages":[{"title":"Prompt engineering","href":"/prompting/prompting-one"}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/use-case/video-tutorials"}]},{"tab":"Glossary","pages":[{"title":"Glossary","href":"/glossary"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/tips-tricks/best-practice"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/tips-tricks/best-practice"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/tips-tricks/best-practice"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/tips-tricks/best-practice"}]},{"language":"de","pages":[{"title":"de","href":"/de/tips-tricks/best-practice"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/tips-tricks/best-practice"}]},{"language":"it","pages":[{"title":"it","href":"/it/tips-tricks/best-practice"}]}]},"basePath":"","title":"Best practices - Lovable Documentation","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}