Small Pics

Small-Pics-Bildauslieferung für EmDash.

Erweiterung

Small Pics

Small-Pics-Bildauslieferung für EmDash.

  • Kategorie: Medien
  • Status: Verfügbar
  • Version: 0.1.0
  • Preis: Unbekannt
  • Quelle: npm-Paket
  • Installation: Native npm-Integration
  • Geprüft: 2026-11-01

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