From ba90ef53d39adc517d2ed5772649cf6e7779fca0 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 6 Apr 2022 10:27:16 -0500 Subject: [PATCH] Update readme.md --- packages/integrations/node/readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/integrations/node/readme.md b/packages/integrations/node/readme.md index e9c8bf76e..ffd4b6ffa 100644 --- a/packages/integrations/node/readme.md +++ b/packages/integrations/node/readme.md @@ -5,11 +5,12 @@ An experimental server-side rendering adapter for use with Node.js servers. In your astro.config.mjs use: ```js +import { defineConfig } from 'astro/config'; import nodejs from '@astrojs/node'; -export default { +export default defineConfig({ adapter: nodejs() -} +}) ``` After performing a build there will be a `dist/server/entry.mjs` module that works like a middleware function. You can use with any framework that supports the Node `request` and `response` objects. For example, with Express you can do: