# SeedcordConfig

`interface` in `seedcord` · v0.24.0

<https://seedcord.org/docs/packages/seedcord/0.24.0/interfaces/seedcord-config>

The `seedcord.config.ts` of a bot that runs on Cloudflare Workers. For a bot on node or bun, use
[`SeedcordServerConfig`](/docs/packages/seedcord/0.24.0/interfaces/seedcord-server-config). Its `build` also takes `outDir` and `start`.

```ts
interface SeedcordConfig
```

## Properties

### build

```ts
build?: SeedcordBaseBuildConfig
```

Optional build configuration overrides.

### dev

```ts
dev?: SeedcordDevConfig
```

Options for `seedcord dev`.

### emojis

```ts
emojis?: SeedcordEmojisConfig
```

Options for the emojis that seedcord uploads to your application.

### files

```ts
files?: string[]
```

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.

### instance

```ts
instance: string;
```

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

### make

```ts
make?: SeedcordMakeConfig
```

Options for `seedcord make`.

### root

```ts
root?: string
```

Root directory used for resolving relative paths.

### vitePlugins

```ts
vitePlugins?: () => PluginOption[]
```

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.
