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