diff options
author | 2022-04-06 10:27:16 -0500 | |
---|---|---|
committer | 2022-04-06 10:27:16 -0500 | |
commit | ba90ef53d39adc517d2ed5772649cf6e7779fca0 (patch) | |
tree | cb5b5ba30843660852823afaf4eb35e60a63f47b | |
parent | 29792649d2d75fbf1097ed361706ab79687fbfe6 (diff) | |
download | astro-ba90ef53d39adc517d2ed5772649cf6e7779fca0.tar.gz astro-ba90ef53d39adc517d2ed5772649cf6e7779fca0.tar.zst astro-ba90ef53d39adc517d2ed5772649cf6e7779fca0.zip |
Update readme.md
-rw-r--r-- | packages/integrations/node/readme.md | 5 |
1 files 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: |