在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:gwuhaolin/koa-seo开源软件地址:https://github.com/gwuhaolin/koa-seo开源编程语言:JavaScript 100.0%开源软件介绍:koa-seoSEO middleware for koa base on chrome-render, a substitute for prerender. Modern web app use technique like react.js vue.js which render html in browser, this lead to search engine can't crawl your page content. This project want to solve this kind of problem in a general-purpose way, it detect request is from search engine crawler then use headless chrome to render out your modern web page and return to crawler. Here is koa-seo's architecture diagram: Usenpm i koa-seo then use it: const Koa = require('koa');
const seoMiddleware = require('koa-seo');
const app = new Koa();
app.use(seoMiddleware({
render: {
// use `window.isPageReady=1` to notify chrome-render page has ready
useReady: true,
}
}));
app.listen(3000); you can download and run this complete demo Options
For more flexible use case see koa-chrome-render. Friends
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论