Skip to content

Instantly share code, notes, and snippets.

@danielyankowski
danielyankowski / gist:3495df43d01a207a8f37ba738192798b
Created May 12, 2025 08:41
Special SEO Prompt for Lovable (SSG Implementation)
Special SEO Prompt for Lovable (SSG Implementation)
Source: We Fixed Lovable AI SEO With One Weird Prompt Hack (Is This A World First??) https://www.youtube.com/watch?v=_ojJi39JiLk&lc=Ugwv6PHm-ocpqA-6Tmx4AaABAg
This prompt is used to instruct Lovable to generate the page as static (SSG), which improves its visibility for search engines.
You should only input this prompt into Lovable after the first version of your page has been created, otherwise it won't work.
Note: After using this prompt, Lovable should provide instructions regarding potential modification of the package.json file.
To edit package.json file you can use Code Editing in Dev Mode (turn it on here https://lovable.dev/?settings=labs) or through GitHub integration.
Warning! This prompt is experimental. There is no guarantee that SSG will work, and there is also a small chance that it may cause problems with page rendering. Therefore, after implementation and ensuring that you have correctly updated the package.json file, the page should be tho