base_ui/server/plugins/readme.md

9 lines
292 B
Markdown
Raw Permalink Normal View History

2025-02-01 09:34:55 +00:00
You can also create plugins that enhance the server's functionality.
For example, a custom plugin to add a database connection in server/plugins/db.ts:
import { defineNitroPlugin } from 'nuxt3';
export default defineNitroPlugin((nitro) => {
// Add your database connection logic here
});