Skip to content

Commit a5e5cbf

Browse files
committed
astro test SSR
1 parent 6a7c5b0 commit a5e5cbf

File tree

4 files changed

+161
-4
lines changed

4 files changed

+161
-4
lines changed

astro.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ import alpinejs from '@astrojs/alpinejs';
44
import react from '@astrojs/react';
55
import sitemap from '@astrojs/sitemap';
66
import tailwindcss from "@tailwindcss/vite";
7+
import node from "@astrojs/node";
8+
79

810
// https://astro.build/config
911
export default defineConfig({
12+
output: "static", // if we want server side rendering, add `prerender = false` at the top of the astro file
1013
site: 'https://bounteer.com',
14+
adapter: node({ mode: "standalone" }),
15+
1116
vite: {
1217
plugins: [tailwindcss()],
1318
},

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/alpinejs": "^0.4.5",
13+
"@astrojs/alpinejs": "0.4.8",
14+
"@astrojs/node": "^9.4.3",
1415
"@astrojs/react": "^4.3.0",
1516
"@hookform/resolvers": "^5.2.1",
1617
"@radix-ui/react-label": "^2.1.7",
@@ -32,7 +33,7 @@
3233
"zod": "^4.1.5"
3334
},
3435
"devDependencies": {
35-
"@astrojs/sitemap": "^3.5.0",
36+
"@astrojs/sitemap": "3.5.1",
3637
"@types/react": "^19.1.8",
3738
"astro": "^5.13.5"
3839
}

pnpm-lock.yaml

Lines changed: 146 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)