Skip to content

Commit 20b55ba

Browse files
authored
feat(deployment): integrate @astrojs/vercel as SSR adapter (#43)
This Pull request integrates the `@astrojs/vercel` as SSR adapter which fixes the current regressed state of the initial production deployment. This PR replaces the integration of `@astrojs/node` as SSR adapter due to the specific requirement of deploying to Vercel. ### Changes Made - Added the `@astrojs/vercel` module to dependencies - Configured the integration in the `astro.config.mjs` file replacing the configuration of `@astrojs/node` as SSR adapter ### Screenshot _Before_ ![screenshot-jargons-dev vercel app-2024 04 17-00_37_17](https://github.com/babblebey/jargons.dev/assets/25631971/d7a5c4c7-a9a4-4356-a466-a297c6248a9a) _After_ ![image](https://github.com/babblebey/jargons.dev/assets/25631971/a4f080aa-ac3d-4ffd-b431-029ecb335010)
1 parent d3c738c commit 20b55ba

3 files changed

Lines changed: 649 additions & 5 deletions

File tree

astro.config.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { defineConfig } from "astro/config";
22
import tailwind from "@astrojs/tailwind";
33
import mdx from "@astrojs/mdx";
44
import react from "@astrojs/react";
5-
import node from "@astrojs/node";
5+
6+
import vercel from "@astrojs/vercel/serverless";
67

78
// https://astro.build/config
89
export default defineConfig({
910
integrations: [tailwind(), mdx(), react()],
1011
output: "server",
11-
adapter: node({
12-
mode: "standalone"
13-
})
12+
adapter: vercel()
1413
});

0 commit comments

Comments
 (0)