### Configure Nitro Server Options Source: https://nitro.unjs.io Configure Nitro's server preset, output directory, and route rules for caching. ```typescript import { defineConfig } from 'nitro' export default defineConfig({ preset: "node", serverDir: "./server", routeRules: { "/api/**": { cache: true } } }) ``` -------------------------------- ### Configure Vite with Nitro Plugin Source: https://nitro.unjs.io Integrate Nitro into your Vite project by adding the nitro plugin and specifying the server directory. ```typescript import { defineConfig } from 'vite' import { nitro } from 'nitro/vite' export default defineConfig({ plugins: [nitro()], nitro: { serverDir: "./server" } }) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.