imgix-webfolder-router:一个简单的node.js路由器,允许imgix Web文件夹的多个基本U...

imgix-webfolder-router将多个top-level folders映射到Base URLs node.js服务器。当您将“Web文件夹”源的基本URL指向此服务器时,您可以有效地拥有多个“Web文件夹”imgix源,但只使用一个。这还允许您通过简单地更新服务器的配置文件,将更多Base URLs添加到单个imgix主机名。示例概览此示例概述使用“yourcompany.com”的示例配置来向您展示其工作原理。入门克隆这个repo并运行npm install 。配置通过复制模板cp config.example.js config.js创建配置文件。例如,我们为“yourcompany.com”制作了一个假配置。 module.exports = { webFolderRoutes: { // keys
zip
imgix-webfolder-router-master.zip 预估大小:6个文件
folder
imgix-webfolder-router-master 文件夹
file
.gitignore 23B
file
.eslintrc 384B
file
package.json 270B
file
README.md 3KB
file
config.example.js 287B
file
server.js 753B
zip 文件大小:3.59KB