@fedify/astro 2.5.0-dev.2448 → 2.5.0-dev.2494
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.
- package/README.md +31 -31
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -78,72 +78,72 @@ export const onRequest = sequence(
|
|
|
78
78
|
[Astro]: https://astro.build/
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
For
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
`@fedify/astro` remains available on JSR, but Deno-based Astro projects should
|
|
85
|
-
install it and the other packages loaded by Astro from npm. Astro loads
|
|
86
|
-
integrations and middleware through Vite, which resolves bare imports through
|
|
87
|
-
*node\_modules/* rather than Deno's JSR import map. The npm specifiers let Deno
|
|
88
|
-
populate *node\_modules/* for Vite.
|
|
81
|
+
For Bun users
|
|
82
|
+
-------------
|
|
89
83
|
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
Astro 7 does not have a compatible Bun-specific adapter. The tested Bun
|
|
85
|
+
configuration uses `@astrojs/node` 11 in standalone mode, builds Astro with
|
|
86
|
+
Bun, and runs the resulting server entry point with Bun:
|
|
92
87
|
|
|
93
88
|
~~~~ typescript
|
|
94
89
|
import { defineConfig } from "astro/config";
|
|
95
90
|
import { fedifyIntegration } from "@fedify/astro";
|
|
96
|
-
import
|
|
91
|
+
import node from "@astrojs/node";
|
|
97
92
|
|
|
98
93
|
export default defineConfig({
|
|
99
94
|
integrations: [fedifyIntegration()],
|
|
100
95
|
output: "server",
|
|
101
|
-
adapter:
|
|
96
|
+
adapter: node({ mode: "standalone" }),
|
|
102
97
|
});
|
|
103
98
|
~~~~
|
|
104
99
|
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
Then use Bun to start Astro in development, and run the generated server entry
|
|
101
|
+
point after building for preview or production:
|
|
107
102
|
|
|
108
103
|
~~~~ json
|
|
109
104
|
{
|
|
110
|
-
"
|
|
111
|
-
"dev": "
|
|
112
|
-
"build": "
|
|
113
|
-
"preview": "
|
|
105
|
+
"scripts": {
|
|
106
|
+
"dev": "bunx --bun astro dev",
|
|
107
|
+
"build": "bunx --bun astro build",
|
|
108
|
+
"preview": "bun ./dist/server/entry.mjs"
|
|
114
109
|
}
|
|
115
110
|
}
|
|
116
111
|
~~~~
|
|
117
112
|
|
|
118
113
|
|
|
119
|
-
For
|
|
120
|
-
|
|
114
|
+
For Deno users
|
|
115
|
+
--------------
|
|
121
116
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
`@fedify/astro` remains available on JSR, but Deno-based Astro projects should
|
|
118
|
+
install it and the other packages loaded by Astro from npm. Astro loads
|
|
119
|
+
integrations and middleware through Vite, which resolves bare imports through
|
|
120
|
+
*node\_modules/* rather than Deno's JSR import map. The npm specifiers let Deno
|
|
121
|
+
populate *node\_modules/* for Vite.
|
|
122
|
+
|
|
123
|
+
If you are using Deno, you should import `@deno/astro-adapter` in
|
|
124
|
+
*astro.config.mjs* and use it as the adapter:
|
|
125
125
|
|
|
126
126
|
~~~~ typescript
|
|
127
127
|
import { defineConfig } from "astro/config";
|
|
128
128
|
import { fedifyIntegration } from "@fedify/astro";
|
|
129
|
-
import
|
|
129
|
+
import deno from "@deno/astro-adapter";
|
|
130
130
|
|
|
131
131
|
export default defineConfig({
|
|
132
132
|
integrations: [fedifyIntegration()],
|
|
133
133
|
output: "server",
|
|
134
|
-
adapter:
|
|
134
|
+
adapter: deno(),
|
|
135
135
|
});
|
|
136
136
|
~~~~
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
And the tasks in *deno.json* should use Astro 7 with manual *node\_modules/*
|
|
139
|
+
management:
|
|
140
140
|
|
|
141
141
|
~~~~ json
|
|
142
142
|
{
|
|
143
|
-
"
|
|
144
|
-
"dev": "
|
|
145
|
-
"build": "
|
|
146
|
-
"preview": "
|
|
143
|
+
"tasks": {
|
|
144
|
+
"dev": "deno run -A --node-modules-dir=manual npm:astro@7 dev",
|
|
145
|
+
"build": "deno run -A --node-modules-dir=manual npm:astro@7 build",
|
|
146
|
+
"preview": "deno run -A --node-modules-dir=manual npm:astro@7 preview"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
~~~~
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/astro",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2494+f2e9b5d3",
|
|
4
4
|
"description": "Integrate Fedify with Astro",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"astro": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
50
|
-
"@fedify/fedify": "^2.5.0-dev.
|
|
50
|
+
"@fedify/fedify": "^2.5.0-dev.2494+f2e9b5d3"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"astro": "^7.0.0",
|