Skip to content

ogygia warning

content_collection_not_server_only

‹file› defines a collection outside a server-only module. Move it to a `.server.ts` file (or `src/lib/server/`) and mint remotes for the wire — Kit then guarantees the corpus can never reach a client bundle.

A content() collection is defined in a module the browser could import. One import from an island or a route component would bundle the whole corpus (often megabytes of compiled markdown) into the client, with no error. Said once per file.

Move the collection to a .server.ts file or src/lib/server/, which Kit never lets client code import, and read it through its remote functions.

Every error and warning