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

x/earthstar/src/entries/deno.ts>ExtensionServeContentOpts

Storage for private, distributed, offline-first applications.
Go to Latest
interface ExtensionServeContentOpts
import { type ExtensionServeContentOpts } from "https://deno.land/x/earthstar@v10.2.0/src/entries/deno.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.