All files / realm/blong-party server.ts

100% Statements 21/21
100% Branches 1/1
100% Functions 0/0
100% Lines 21/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 221x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import {realm} from '@feasibleone/blong';
 
/**
 * server.ts — `party` realm entry point (server platform).
 *
 * The realm answers persons, organisations and the records hanging off them, and a person's
 * photograph is bytes, not a row: the store that keeps them is `blob`, a companion realm the suite
 * loads beside this one.
 */
export default realm(() => ({
    url: import.meta.url,
    config: {
        default: {
            // What this realm needs from the rest of the suite, which is the half a realm can answer:
            // it knows what it calls, and the store does not see who will use it. Naming `blob` is
            // what gives the store a process to ride — the processes that carry this realm — instead
            // of every process of the suite (`@@D-871`).
            k8s: {k8sNeeds: ['blob']},
        },
    },
}));