diff options
author | 2022-03-29 23:11:27 -0300 | |
---|---|---|
committer | 2022-03-29 23:11:27 -0300 | |
commit | 8c65f133272c6ce9f211d8acd2b92fd652e7e53c (patch) | |
tree | 48f200f86ab25de8faae581662236d20ca36a083 | |
parent | ff67cb4849bc706da4f7ecd028063aca3305551a (diff) | |
download | astro-8c65f133272c6ce9f211d8acd2b92fd652e7e53c.tar.gz astro-8c65f133272c6ce9f211d8acd2b92fd652e7e53c.tar.zst astro-8c65f133272c6ce9f211d8acd2b92fd652e7e53c.zip |
Updated readme
-rw-r--r-- | packages/integrations/vercel/README.md | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md index 24fdb5187..876db86d3 100644 --- a/packages/integrations/vercel/README.md +++ b/packages/integrations/vercel/README.md @@ -1,44 +1,22 @@ -# @astrojs/netlify +# @astrojs/vercel -Deploy your server-side rendered (SSR) Astro app to [Netlify](https://www.netlify.com/). +Deploy your server-side rendered (SSR) Astro app to [Vercel](https://www.vercel.com/). -Use this adapter in your Astro configuration file: +Use this integration in your Astro configuration file: ```js import { defineConfig } from 'astro/config'; -import netlify from '@astrojs/netlify/functions'; +import vercel from '@astrojs/vercel'; export default defineConfig({ - adapter: netlify() + integrations: [netlify()] }); ``` -After you build your site the `netlify/` folder will contain [Netlify Functions](https://docs.netlify.com/functions/overview/) in the `netlify/functions/` folder. +After you build your site the `.output/` folder will contain your server-side rendered app. Since this feature is still in beta, you'll **need to add this Enviroment Variable to your Vercel project**: `ENABLE_FILE_SYSTEM_API=1` Now you can deploy! ```shell -netlify deploy -``` - -## Configuration - -The output folder is configuration with the `dist` property when creating the adapter. - -```js -import { defineConfig } from 'astro/config'; -import netlify from '@astrojs/netlify/functions'; - -export default defineConfig({ - adapter: netlify({ - dist: new URL('./dist/', import.meta.url) - }) -}); -``` - -And then point to the dist in your `netlify.toml`: - -```toml -[functions] - directory = "dist/functions" +vercel ``` |