Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links not found #19

Open
ollebergkvist opened this issue May 18, 2023 · 0 comments
Open

Links not found #19

ollebergkvist opened this issue May 18, 2023 · 0 comments

Comments

@ollebergkvist
Copy link

ollebergkvist commented May 18, 2023

I'm trying to run the seo-analyzer in a Next.js (13.2.3) project.

But I'm getting the following output:
πŸš€ Ready on http://localhost:3000

πŸš€ Get sitemap from http://localhost:3000

❌ Links not found

Sitemap is generated by next-sitemap on build and is exported to the public folder.

I guess the issue is that seo-analyzer can't detect the sitemap?

I've verified that the sitemap is reachable via http://localhost:3000/sitemap.xml in local development.

How can I resolve this?

Many thanks in advance!

seo-analyzer.js
require('dotenv').config()
const SeoAnalyzer = require('seo-analyzer')

new SeoAnalyzer()
  .inputNextJs(3000)
  .addRule(
    'titleLengthRule',
    { min: 10, max: 50 },
    'imgTagWithAltAttributeRule',
    'aTagWithRelAttributeRule',
    'metaSocialRule',
    {
      properties: [
        'og:url',
        'og:type',
        'og:site_name',
        'og:title',
        'og:description',
        'og:image',
        'og:image:width',
        'og:image:height',
        'twitter:card',
        'twitter:text:title',
        'twitter:description',
        'twitter:image:src',
        'twitter:url',
      ],
    },
    'canonicalLinkRule'
  )
  .outputConsole()
public/
┣ admin/
┃ ┣ assets/
┃ ┣ .gitignore
┃ β”— index.html
┣ fonts/
┃ ┣ HelveticaNowText-Bold.woff2
┃ β”— HelveticaNowText-Regular.woff2
┣ scripts/
┃ ┣ scrollbar-width.js
┃ ┣ smartlook.js
┃ ┣ theme.js
┃ β”— window-height.js
┣ styles/
┃ ┣ globals.css
┃ β”— swiper.css
┣ favicon.ico
┣ logotype.svg
┣ og_default.png
┣ prisjakt.png
┣ sitemap.xml
β”— sponsors.webp
.next/
┣ cache/
┃ ┣ images/
┃ ┣ swc/
┃ ┣ webpack/
┃ β”— next-server.js.nft.json
┣ server/
┃ ┣ chunks/
┃ ┣ pages/
┃ ┣ font-loader-manifest.js
┃ ┣ font-loader-manifest.json
┃ ┣ font-manifest.json
┃ ┣ middleware-build-manifest.js
┃ ┣ middleware-manifest.json
┃ ┣ middleware-react-loadable-manifest.js
┃ ┣ pages-manifest.json
┃ ┣ webpack-api-runtime.js
┃ β”— webpack-runtime.js
┣ static/
┃ ┣ Yv9_L8DMQcC1hKfxrYKCn/
┃ ┣ chunks/
┃ ┣ css/
┃ β”— media/
┣ BUILD_ID
┣ build-manifest.json
┣ export-marker.json
┣ images-manifest.json
┣ next-server.js.nft.json
┣ package.json
┣ prerender-manifest.json
┣ react-loadable-manifest.json
┣ required-server-files.json
┣ routes-manifest.json
β”— trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant