maddevsio / seo-analyzer

The library for analyze a HTML file to show all of the SEO defects
MIT License
78 stars 12 forks source link

how can i point this analyser to an existing local server? #2

Closed ksaitor closed 2 years ago

ksaitor commented 3 years ago

For example i have a local CRA or Next.js app running on localhost:3000. How can i point this tool to analyse localhost:3000 ?

p.s. Also, would be cool if this could be part of a test suite, so that if something breaks, whole build fails.

denisoed commented 3 years ago

Hi @ksaitor! Thanks for the feedback ;)

Unfortunately, the analyzer does not yet know how to work with localhost. But we will definitely add this functionality. Stay tuned for more updates.

Please use the .outputConsole function to abort the build process if the CEO analyzer finds errors.

oh-cactus commented 2 years ago

For example i have a local CRA or Next.js app running on localhost:3000. How can i point this tool to analyse localhost:3000 ?

p.s. Also, would be cool if this could be part of a test suite, so that if something breaks, whole build fails.

@ksaitor This update is now avaliable! You can use .inputNextJs(3000) rule for analyze Next.js app on localhost:3000. Also you can run seo-analyzer on pre-push or pre-commit. Read more