SEO Best Practices
Learn how to optimize your Indie Kit application for search engines using Next.js metadata and JSON-LD
SEO Best Practices 🔍
Indie Kit comes with built-in SEO optimization features that help your application rank better in search engines. This guide covers how to effectively use Next.js metadata and JSON-LD structured data.
Metadata Configuration 📝
Next.js provides a powerful metadata API that helps you manage SEO-related tags. Here's how to use it effectively:
JSON-LD Structured Data 🏷️
JSON-LD helps search engines better understand your content. Indie Kit uses next-seo
for structured data:
Sitemap Generation 🗺️
Add pages to your sitemap in app/sitemap.ts
:
Best Practices 💡
-
Metadata
- Use descriptive titles and descriptions
- Keep titles under 60 characters
- Write descriptions between 150-160 characters
- Include relevant keywords naturally
-
Images
- Always provide alt text
- Use descriptive filenames
- Optimize image sizes
- Specify image dimensions
-
URLs
- Use clean, descriptive URLs
- Include canonical URLs
- Implement proper redirects
- Handle trailing slashes consistently
-
Performance
- Optimize loading speed
- Use responsive images
- Implement lazy loading
- Enable caching
-
Mobile
- Ensure mobile responsiveness
- Use appropriate font sizes
- Maintain tap target sizes
- Test on multiple devices
-
Content
- Use semantic HTML
- Structure content with headings
- Include internal links
- Keep content fresh and relevant
Common Schemas 📊
Here are some commonly used JSON-LD schemas:
Testing Tools 🛠️
-
Google Search Console
- Submit your sitemap
- Monitor indexing status
- Check mobile usability
- Track search performance
-
Google's Rich Results Test
- Validate structured data
- Preview rich snippets
- Debug schema issues
-
Meta Tags Validators
- Test Open Graph tags
- Verify Twitter cards
- Check social previews
-
- Quick SEO audits in Chrome
- Check meta tags and headers
- Analyze structured data
- View social media previews
- Inspect robots.txt and sitemap
- Monitor page load times
- Check SSL certificates
- Analyze page content and keywords
Remember to regularly audit your SEO implementation and keep up with search engine guidelines and best practices! 🚀