Skip to main content
MediaKit

Install

Adding MediaKit/log to SolidStart

Install

Terminal window
pnpm add @solid-mediakit/og

Plugin Installation

Add the plugin to your config:

import { defineConfig } from '@solidjs/start/config'
import { vitePlugin as logPlugin } from '@solid-mediakit/log/unplugin'
export default defineConfig({
vite: {
plugins: [logPlugin()],
},
})

Options

You can choose on which ENV it will be printed, if you only need logs for development then specify:

logOn: 'development'

Default is always

export type Options = {
logOn?: 'production' | 'development' | 'always'
filter?: {
include?: FilterPattern
exclude?: FilterPattern
}
}

Config complete! To see how to use the log$ utility in your app, visit log

Last updated: 5/30/25, 9:16 AM

MediaKitFully featured, fully customisable static site generation for SolidStart
Community
github