Skip to content

Commit 7883468

Browse files
astrobot-houstongithub-actions[bot]matthewpsarah11918
authored
[ci] release (#5046)
* [ci] release * Update packages/integrations/node/CHANGELOG.md Co-authored-by: Sarah Rainsberger <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matthew Phillips <[email protected]> Co-authored-by: Sarah Rainsberger <[email protected]>
1 parent 00aa4fd commit 7883468

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

packages/integrations/cloudflare/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# @astrojs/cloudflare
22

3+
## 3.1.0
4+
5+
### Minor Changes
6+
7+
- [#5056](https://github.com/withastro/astro/pull/5056) [`e55af8a23`](https://github.com/withastro/astro/commit/e55af8a23233b6335f45b7a04b9d026990fb616c) Thanks [@matthewp](https://github.com/matthewp)! - # New build configuration
8+
9+
The ability to customize SSR build configuration more granularly is now available in Astro. You can now customize the output folder for `server` (the server code for SSR), `client` (your client-side JavaScript and assets), and `serverEntry` (the name of the entrypoint server module). Here are the defaults:
10+
11+
```js
12+
import { defineConfig } from 'astro/config';
13+
14+
export default defineConfig({
15+
output: 'server',
16+
build: {
17+
server: './dist/server/',
18+
client: './dist/client/',
19+
serverEntry: 'entry.mjs',
20+
},
21+
});
22+
```
23+
24+
These new configuration options are only supported in SSR mode and are ignored when building to SSG (a static site).
25+
26+
## Integration hook change
27+
28+
The integration hook `astro:build:start` includes a param `buildConfig` which includes all of these same options. You can continue to use this param in Astro 1.x, but it is deprecated in favor of the new `build.config` options. All of the built-in adapters have been updated to the new format. If you have an integration that depends on this param we suggest upgrading to do this instead:
29+
30+
```js
31+
export default function myIntegration() {
32+
return {
33+
name: 'my-integration',
34+
hooks: {
35+
'astro:config:setup': ({ updateConfig }) => {
36+
updateConfig({
37+
build: {
38+
server: '...',
39+
},
40+
});
41+
},
42+
},
43+
};
44+
}
45+
```
46+
347
## 3.0.0
448

549
### Major Changes

packages/integrations/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@astrojs/cloudflare",
33
"description": "Deploy your site to cloudflare pages functions",
4-
"version": "3.0.0",
4+
"version": "3.1.0",
55
"type": "module",
66
"types": "./dist/index.d.ts",
77
"author": "withastro",

0 commit comments

Comments
 (0)