exile.watch docs
  • Introduction
  • The Maven - exile.watch context
  • Projects
    • hideout
    • crucible
      • Contributing
    • writ
      • Contributing
    • splinters
      • Contributing
      • @exile-watch/biome-config
      • @exile-watch/conventional-changelog-config
      • @exile-watch/lefthook-config
      • @exile-watch/rollup-config
      • @exile-watch/typescript-config
      • @exile-watch/unit-testing-config
    • nucleus
      • Contributing (data)
        • Encounter token breakdown
      • Contributing (scripts)
        • Scripts definition
      • @exile-watch/encounter-data
      • @exile-watch/seo
    • malachai
      • Contributing
      • snap gyazo thumbnail
    • doryani
      • Contributing
      • Actions
        • Authenticate to GitHub Package Registry
        • Install npm dependencies
        • Code quality assurance
        • Deploy webapp
        • Publish package
        • Preview publish package
        • Preview deploy webapp
  • voidstone
    • Contributing
  • Development
    • Commit message guidelines
    • Prerequisites
    • Generating GitHub PAT
    • .npmrc file
  • Architecture
    • Dependencies
    • Tech stack
    • Adoption chart
    • GHA workflows web
  • Legal
    • License - FSL, Apache 2.0
    • Non-Affiliation Notice
    • Code of Conduct
    • Privacy Policy
Powered by GitBook
On this page
  • About @exile-watch/seo
  • About Next SEO
  • Usage

Was this helpful?

  1. Projects
  2. nucleus

@exile-watch/seo

Search Optimization Engine tooling that powers exile.watch

Previous@exile-watch/encounter-dataNextmalachai

Last updated 1 year ago

Was this helpful?

About

This package contains SEO meta configs, Next SEO dependency and script to generate that power exile.watch .

About Next SEO

Usage

  1. Install the package as a dependency:

npm i @exile-watch/seo

  1. Example of Next SEO usage with metaEncountersCategories configuration:

// EncountersCategory.page.tsx
import { metaEncountersCategories } from "@exile-watch/seo";
import { startCase } from "lodash";
import { NextSeo } from "next-seo";
import { useRouter } from "next/router";
import React from "react";
import { Layout } from "#components";
import ListEncounterCategories from "./_components/ListEncounterCategories/ListEncounterCategories";

const EncountersCategoryPage = () => {
  const {
    query: { directory, category },
  } = useRouter();

  return (
    <>
      {directory && category && (
        <NextSeo {...metaEncountersCategories({ directory, category })} />
      )}

      <Layout label={startCase(category as string)}>
        <ListEncounterCategories />
      </Layout>
    </>
  );
};

export { EncountersCategoryPage };

is a plugin that makes managing your SEO easier in Next.js projects.

Next SEO
@exile-watch/seo
sitemap.xml
SEO
exile.watch logo