lptech / vue-ssr

通过Prerender node系统渲染Vuejs和JS框架。此模块适用于laravel,renderNode模块请查看此代码

dev-master 2022-08-19 03:41 UTC

This package is auto-updated.

Last update: 2024-09-19 08:31:44 UTC


README

通过Prerender node系统渲染Vuejs和JS框架。此模块适用于laravel和 renderNode 模块,请查看此代码

我们的服务 - 我们的服务

发布提供者

php artisan vendor:publish --provider="LPTech\VueSSR\VueSSRProvider"

通过手册的用户指南

cd /vendor
git clone https://github.com/hackerpro536/vuejs-ssr.git
composer dump-autoload -a

通过Composer安装的用户指南

composer require lptech/vue-ssr
composer dump-autoload -a

环境信息

# Value 1 is Enable, value 0 is Disable: Default = 1
RENDERING_ENABLE = ""
# URL of Node Rendering Server
RENDERING_URL = ""
# Flag to enable debuger, add param ?debug below query url to test.
FLAG_DEBUG = debug
# Protocol is http or https or website
PROTOCOL = ""
# Blacklist of link want to rendering, the link in this will be exclude when render format is string sepatare by comma, Ex: "/,*.js,*.css,*.xml,*.less"
BLACK_LIST = ""
WHITE_LIST = ""
# This is user-agent want to rendering ex: google, bing, yahoo, baidu, yandex ..
CRAWLER_AGENT = ""