astro/packages/integrations/vercel/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
688 B
Markdown
Raw Normal View History

2022-03-30 02:11:27 +00:00
# @astrojs/vercel
2022-03-28 13:05:55 +00:00
2022-03-30 02:11:27 +00:00
Deploy your server-side rendered (SSR) Astro app to [Vercel](https://www.vercel.com/).
2022-03-28 13:05:55 +00:00
2022-03-30 02:11:27 +00:00
Use this integration in your Astro configuration file:
2022-03-28 13:05:55 +00:00
```js
import { defineConfig } from 'astro/config';
2022-03-30 02:11:27 +00:00
import vercel from '@astrojs/vercel';
2022-03-28 13:05:55 +00:00
export default defineConfig({
2022-03-31 18:12:43 +00:00
adapter: vercel()
2022-03-28 13:05:55 +00:00
});
```
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`. [Learn how to set enviroment variables](https://vercel.com/docs/concepts/projects/environment-variables).
2022-03-28 13:05:55 +00:00
Now you can deploy!
```shell
2022-03-30 02:11:27 +00:00
vercel
2022-03-28 13:05:55 +00:00
```