Search engine optimization for Google Antigravity IDE
# SEO Best Practices for Google Antigravity
Master SEO in Google Antigravity IDE.
## Dynamic Metadata
```typescript
import { Metadata } from "next";
export async function generateMetadata({ params }): Promise<Metadata> {
const post = await getPost(params.slug);
return {
title: post.title,
description: post.excerpt,
openGraph: {
title: post.title,
description: post.excerpt,
images: [{ url: post.coverImage }],
type: "article"
},
alternates: {
canonical: `https://myapp.com/blog/${params.slug}`
}
};
}
```
## Structured Data
```typescript
export function ArticleSchema({ post }: { post: Post }) {
const schema = {
"@context": "https://schema.org",
"@type": "Article",
headline: post.title,
description: post.excerpt,
datePublished: post.publishedAt,
author: { "@type": "Person", name: post.author.name }
};
return (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
/>
);
}
```
## Sitemap
```typescript
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const posts = await getAllPosts();
return [
{ url: "https://myapp.com", priority: 1 },
...posts.map(post => ({
url: `https://myapp.com/blog/${post.slug}`,
lastModified: post.updatedAt,
priority: 0.8
}))
];
}
```
## Best Practices
1. **Unique titles** - Each page unique
2. **Fast loading** - Core Web Vitals matter
Google Antigravity IDE provides SEO scaffolding.This SEO prompt is ideal for developers working on:
By using this prompt, you can save hours of manual coding and ensure best practices are followed from the start. It's particularly valuable for teams looking to maintain consistency across their seo implementations.
Yes! All prompts on Antigravity AI Directory are free to use for both personal and commercial projects. No attribution required, though it's always appreciated.
This prompt works excellently with Claude, ChatGPT, Cursor, GitHub Copilot, and other modern AI coding assistants. For best results, use models with large context windows.
You can modify the prompt by adding specific requirements, constraints, or preferences. For SEO projects, consider mentioning your framework version, coding style, and any specific libraries you're using.