Skip to content

Commit

Permalink
use vercel adapter for SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
haffi96 committed Sep 16, 2023
1 parent a2595d5 commit b833865
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 128 deletions.
6 changes: 2 additions & 4 deletions ui/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ import { defineConfig } from "astro/config";
// Plugins
import tailwind from "@astrojs/tailwind";
import preact from "@astrojs/preact";
import node from '@astrojs/node';
import vercel from "@astrojs/vercel/serverless";

// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
adapter: vercel(),
server: {
port: 4321
},
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^6.0.0",
"@astrojs/preact": "^3.0.0",
"@astrojs/tailwind": "^5.0.0",
"@astrojs/vercel": "^5.0.0",
"astro": "^3.0.7",
"preact": "^10.6.5",
"tailwindcss": "^3.3.3",
Expand Down
Loading

0 comments on commit b833865

Please sign in to comment.