base_ui/contents/server/plugins/readme.md
2025-02-16 16:22:26 +03:30

9 lines
292 B
Markdown

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
});