Mirocow / yc-on-the-fly-thumbnailer

Serverless Function to create Thumbnails from Yandex Cloud Object Storage on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Предполагается что у вас уже настроена yc. Это CLI понадобится для скрипта деплоя.

Дальше все просто.

  1. Создать файлы .env.develop и .env.production из шаблона из .env.template и заполнить
  2. npm install
  3. ENV_FILE=.env.develop npm run deploy
  4. Сделайте serverless функцию публичной в найтроках

Форматы изображений, используемых в качестве thumbnails:

  • png
  • jpg
  • jpeg

About

Serverless Function to create Thumbnails from Yandex Cloud Object Storage on the fly


Languages

Language:TypeScript 83.7%Language:Shell 16.3%