Small Pics
Small-Pics-Bildauslieferung für EmDash.
Erweiterung
Small Pics
Small-Pics-Bildauslieferung für EmDash.
Small-Pics-Bildauslieferung für EmDash.
Installation
Installieren Sie das Paket über npm:
npm install @smallpics/emdash
Registrieren Sie das Plugin in Ihrer Astro-Konfiguration:
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
- Neueste Version: 0.1.0
- Lizenz: MIT
- Herausgeber: smallpics-dev
- Voraussetzung: EmDash
^1.2.0 - Quell-Repository: https://github.com/SmallPics/emdash-smallpics
- npm-Paket: @smallpics/emdash