Skip to content

Commit 3af2c77

Browse files
committed
Changesets
1 parent 5356d44 commit 3af2c77

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.changeset/easy-animals-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/netlify': patch
3+
---
4+
5+
Fixes a bug that caused remote images to sometimes not display correctly when using the Netlify Image CDN in local dev

.changeset/fifty-pets-knock.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
'@astrojs/netlify': patch
3+
---
4+
5+
Defaults to not injecting environment variables from Netlify
6+
7+
`@astrojs/netlify@6.5.0` introduced a potentially breaking change that enabled injecting Netlify environment variables by default. This was not the intended behavior, as it could lead to unexpected behavior in Astro projects that do not expect these variables to be present. This now defaults to disabled, and users can enable it by setting the `devFeatures.environmentVariables` option in their Astro config.
8+
9+
```js
10+
import { defineConfig } from 'astro/config';
11+
import netlify from '@astrojs/netlify';
12+
13+
export default defineConfig({
14+
integrations: [netlify()],
15+
devFeatures: {
16+
environmentVariables: true,
17+
},
18+
});
19+
```
20+
21+
You can also set `devFeatures` to `true` to enable or disable all dev features, including environment variables and images:
22+
23+
```js
24+
import { defineConfig } from 'astro/config';
25+
import netlify from '@astrojs/netlify';
26+
export default defineConfig({
27+
integrations: [netlify()],
28+
devFeatures: true,
29+
});
30+
```

0 commit comments

Comments
 (0)