Getting Started
Learn how to get started with seo-in-astro.
Prerequisites
Section titled “Prerequisites”You will need to have an Astro website set up. If you don’t have one yet, you can follow the “Install Astro” guide in the Astro docs to create one.
Additionally, your Astro website must meet the following requirements:
- Astro 4.14.0 or higher
Installation
Section titled “Installation”-
Download the integration
.tgzfile from Patreon if you purchased SEO in Astro, or from this link if you purchased SEO Bundle. -
Place the
.tgzfile in the root of your project and add it to yourpackage.json:package.json {"dependencies": {"@dlcastillop/seo-in-astro": "file:./dlcastillop-seo-in-astro-1.0.0-beta.1.tgz"}}Then install the dependencies:
Terminal window npm installTerminal window yarnTerminal window pnpm install -
Configure the plugin in your Starlight configuration in the
astro.config.mjsfile.astro.config.mjs import { defineConfig } from 'astro/config'import { seoInAstro } from "@dlcastillop/seo-in-astro";export default defineConfig({integrations: [seoInAstro({baseUrl: "https://example.com",siteName: "Example",defaultOgImg: "/default-og.png",}),],}); -
You’re all set! Start using the integration in your Astro project.