Small Pics
EmDash 向けの Small Pics 画像配信です。
EmDash 向けの Small Pics 画像配信です。
インストール
npm からパッケージをインストールします。
npm install @smallpics/emdash
Astro の設定にプラグインを登録します。
import { defineConfig } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';
import react from '@astrojs/react';
import emdash from 'emdash/astro';
import { d1, r2 } from '@emdash-cms/cloudflare';
import smallpics, { mediaStorageOptions } from '@smallpics/emdash';
const baseUrl = 'https://media.smallpics.io';
export default defineConfig({
output: 'server',
adapter: cloudflare(),
integrations: [
react(),
emdash({
database: d1({ binding: 'DB' }),
storage: r2(mediaStorageOptions(baseUrl, 'MEDIA')),
images: false,
}),
smallpics({ baseUrl }),
],
});
詳細
- 最新バージョン: 0.1.0
- ライセンス: MIT
- 公開者: smallpics-dev
- 必要条件: EmDash
^1.2.0 - ソースリポジトリ: https://github.com/SmallPics/emdash-smallpics
- npm パッケージ: @smallpics/emdash