Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/server/extensions/serve_content.ts>ExtensionServeContentOpts

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
interface ExtensionServeContentOpts
import { type ExtensionServeContentOpts } from "https://deno.land/x/earthstar@v10.0.0/src/server/extensions/serve_content.ts";

Properties

sourceShare: string

The share to use as the source of documents. Must have been created by another extension.

optional
path: string

An optional path prefix for requests. E.g. /stuff means a call to /stuff/blog.md would fetch /blog.md from the replica.

optional
indexPath: string

A fallback path to use when none is provided. Useful for landing pages.

optional
allowedOrigins: string[]

A list of origins allowed by CORS, if you want other sites to be able to request content from your server.