@fedify/astro 2.1.6 → 2.1.7-dev.841

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +33 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -52,13 +52,12 @@ export const onRequest = fedifyMiddleware(
52
52
  For Deno users
53
53
  --------------
54
54
 
55
- If you are using Deno, you should import `@deno/vite-adapter` in
55
+ If you are using Deno, you should import `@deno/astro-adapter` in
56
56
  *astro.config.mjs* and use it as the adapter:
57
57
 
58
58
  ~~~~ typescript
59
59
  import { defineConfig } from "astro/config";
60
60
  import { fedifyIntegration } from "@fedify/astro";
61
- import deno from "@deno/vite-adapter";
62
61
  import deno from "@deno/astro-adapter";
63
62
 
64
63
  export default defineConfig({
@@ -82,6 +81,38 @@ instead of `astro`:
82
81
  ~~~~
83
82
 
84
83
 
84
+ For Bun users
85
+ -------------
86
+
87
+ If you are using Bun, install `@nurodev/astro-bun` and configure it as the
88
+ Astro adapter:
89
+
90
+ ~~~~ typescript
91
+ import { defineConfig } from "astro/config";
92
+ import { fedifyIntegration } from "@fedify/astro";
93
+ import bun from "@nurodev/astro-bun";
94
+
95
+ export default defineConfig({
96
+ integrations: [fedifyIntegration()],
97
+ output: "server",
98
+ adapter: bun(),
99
+ });
100
+ ~~~~
101
+
102
+ Then use Bun to start Astro in development, and run the generated server entry
103
+ point after building for preview or production:
104
+
105
+ ~~~~ json
106
+ {
107
+ "scripts": {
108
+ "dev": "bunx astro dev",
109
+ "build": "bunx astro build",
110
+ "preview": "bun ./dist/server/entry.mjs"
111
+ }
112
+ }
113
+ ~~~~
114
+
115
+
85
116
  How it works
86
117
  ------------
87
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/astro",
3
- "version": "2.1.6",
3
+ "version": "2.1.7-dev.841+5e5265da",
4
4
  "description": "Integrate Fedify with Astro",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "peerDependencies": {
52
52
  "astro": "^5.0.0",
53
- "@fedify/fedify": "^2.1.6"
53
+ "@fedify/fedify": "^2.1.7-dev.841+5e5265da"
54
54
  },
55
55
  "devDependencies": {
56
56
  "tsdown": "^0.21.6",