Small Pics
Small Pics image delivery for EmDash.
Plugin
Small Pics
Small Pics image delivery for EmDash.
Small Pics image delivery for EmDash.
Installation
Install the package from npm:
npm install @smallpics/emdash
Register the plugin in your Astro config:
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 }),
],
});
Details
- Latest version: 0.1.0
- License: MIT
- Publisher: smallpics-dev
- Requires: EmDash
^1.2.0 - Source repository: https://github.com/SmallPics/emdash-smallpics
- npm package: @smallpics/emdash