Skip to content
Interfaceseedcordv0.24.0

SeedcordServerConfig

The seedcord.config.ts of a bot that runs on node or bun.

interface SeedcordServerConfig extends SeedcordConfig

dev

Options for seedcord dev. A bot on node or bun takes its port in new Seedcord({ server: { port } }).

dev?: Except<SeedcordDevConfig, 'port'> & { port?: never; }

files

Folders whose non-code files seedcord build bundles for readFiles to read, like ['./locales']. Each one includes its subfolders and resolves against root. A folder can sit beside root, like '../assets' with root: './src' as long as it is inside the folder that holds this config.

files?: string[]

Inherited from:SeedcordConfig

Default:[]

instance

Path to the module whose default export is a configured Seedcord instance.

instance: string;

Inherited from:SeedcordConfig

root

Root directory used for resolving relative paths.

root?: string

Inherited from:SeedcordConfig

Default:the config directory

vitePlugins

A function that returns the Vite plugins to run on your bot's code in every seedcord command that loads it, like () => [yaml()]. They change what an import loads, like turning a .yaml file into an object. seedcord calls it once for each Vite server and build.

vitePlugins?: () => PluginOption[]

Inherited from:SeedcordConfig