565 Commits

Author SHA1 Message Date
Houston (Bot)
09bbdbb1e6 [ci] release (#14845)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-26 11:30:07 +01:00
jmgala
c17767a07c allow turning the local Netlify Image CDN on/off in dev (#14807)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-11-25 15:27:29 +01:00
renovate[bot]
4db790233e fix(deps): update astro adapters (#14880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 14:53:07 +01:00
Houston (Bot)
e8786795fc [ci] release (#14808)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-20 08:16:08 -05:00
Philippe Serhal
0419985d94 fix(deps): bump to @netlify/functions v5 to shave 82 MB from @astrojs/netlify (#14716)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-11-19 16:29:32 +01:00
Houston (Bot)
7a07f0244c [ci] release (#14788)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-17 14:26:07 -05:00
renovate[bot]
8d7ee36c28 fix(deps): update astro adapters (#14738)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-10 15:14:12 +01:00
renovate[bot]
dae9d3f683 fix(deps): update astro adapters (#14708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-04 10:12:18 +01:00
Houston (Bot)
54803d7e4f [ci] release (#14603)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-23 11:13:44 +01:00
Matthew Phillips
bc6e6ccb21 [ci] format 2025-10-22 13:45:46 +00:00
Matthew Phillips
9b3241d8a9 Allow adapters to customize headers for fetch requests (#14543)
* feat: add adapter support for internal fetch headers (Netlify skew protection)

Adds a new generic mechanism for adapters to inject headers into Astro's internal fetch calls. This enables features like Netlify's skew protection.

Changes:
- Add `runtimeConfig.internalFetchHeaders` to AstroAdapter interface
- Create `astro:adapter-config/client` virtual module
- Update Actions, View Transitions, Server Islands, and Prefetch to use adapter headers
- Implement Netlify skew protection with DEPLOY_ID header
- Generate `.netlify/v1/skew-protection.json` configuration file
- Add comprehensive test fixture for skew protection

* fix: resolve TypeScript errors in adapter config implementation

- Add type declarations for astro:adapter-config/client virtual module
- Add manifest property to SSRResult interface
- Fix Object.entries type assertions in prefetch and router
- Add explicit return type to Netlify adapter's internalFetchHeaders function

* refactor: extract internalFetchHeaders from manifest into SSRResult

Follow existing pattern of extracting specific fields from manifest rather than passing the entire manifest object to SSRResult. This matches how other fields like base, trailingSlash, and serverIslandNameMap are handled.

* Address PR feedback: clean up tests and update comment

- Remove incomplete test stubs for actions and view transitions
- Remove unused manifestPath variable
- Update prefetch comment to be less strict about dependencies

* Fix import sorting in create-vite and router files

* Fix skew protection test to check correct manifest file

The test was checking ssr.mjs which is just a wrapper, but the actual
serialized manifest is in the manifest_*.mjs file in the build directory.

* Fix virtual module to return empty headers during SSR

This prevents timeouts in integration tests where client-side files
importing the virtual module are processed during SSR.

* review changes

* Update .changeset/netlify-skew-protection.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* fix lint

* Update packages/astro/dev-only.d.ts

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Add assetQueryParams support for skew protection

This adds a new `assetQueryParams` configuration option to the adapter client config that allows adapters to append query parameters to all static asset URLs. This is used for Vercel's skew protection to track deployment versions.

Changes:
- Extended AstroAdapter.client interface with assetQueryParams property
- Modified getAssetsPrefix() to accept and append query parameters
- Updated manifest builder to include query params in all asset URLs
- Updated SSR element creation functions to support query params
- Updated Vercel adapter to provide deployment ID as query param when skew protection is enabled

This ensures that all asset requests include the deployment identifier, allowing Vercel to route them to the correct deployment version if there's a version mismatch between client and server.

* update imports

* update based on review comments

* switch to use URLSearchParams

* remove unneeded file

* align vercel impl with how the other works

* focus changesets a bit more

* Update .changeset/astro-asset-query-params.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* Update .changeset/astro-asset-query-params.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* explain how to do it yourself too

* oops

* Update packages/integrations/vercel/src/index.ts

Co-authored-by: Steven <steven@ceriously.com>

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Steven <steven@ceriously.com>
2025-10-22 09:44:30 -04:00
Florian Lefebvre
505961c0fe chore: unpin vercel/ft (#14580) 2025-10-20 14:38:38 +02:00
renovate[bot]
eaf47d5df5 fix(deps): update astro adapters (#14579)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-20 09:33:15 +02:00
Houston (Bot)
ef7af66097 [ci] release (#14527)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-14 15:08:21 +02:00
Florian Lefebvre
9261996150 fix: pin vercel/nft (#14536) 2025-10-14 14:57:56 +02:00
Houston (Bot)
3bb14b7dbb [ci] release (#14466)
* [ci] release

* Skip yarn test that fails with unpublished dependencies

The yarn test packs astro and attempts to install it, which fails when
workspace dependencies like @astrojs/internal-helpers have been bumped
but not yet published to npm. Skip this test to allow the release to proceed.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2025-10-08 14:51:14 -04:00
renovate[bot]
e89b9478b4 fix(deps): update astro adapters (#14493)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 10:22:01 +02:00
Florian Lefebvre
d9634d31c4 fix: pin vercel/nft (#14473) 2025-10-02 11:23:09 +02:00
Houston (Bot)
29ff12f205 [ci] release (#14416)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-22 09:55:20 +01:00
renovate[bot]
a791684e7a fix(deps): update astro adapters (#14356)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 11:46:52 +02:00
Roman
a6c750c07b bump devalue (#14346)
* bump devalue

https://github.com/withastro/astro/pull/14272

* should work now
2025-09-14 07:46:37 +01:00
Florian Lefebvre
17c7b0395c feat: update sharp (#14335) 2025-09-09 13:53:52 +02:00
Houston (Bot)
aa7bebd322 [ci] release (#14295)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-08 14:12:03 -04:00
Junseong Park
c24a8f42a1 fix(vite): update vite to fix CVE (#14326) 2025-09-08 17:52:41 +02:00
renovate[bot]
ae8f29df47 fix(deps): update astro adapters (#13854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-09-03 13:48:39 +02:00
Houston (Bot)
24b04c159f [ci] release (#14267)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-27 10:28:50 +01:00
Florian Lefebvre
4823c426c4 feat(netlify): dev context (#14269) 2025-08-27 10:56:50 +02:00
Houston (Bot)
d471be562f [ci] release (#14242)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-22 18:33:25 +02:00
Chris Swithinbank
77b18fb1f8 Update Astro peer dependency in adapters with auto-enabled sessions (#14240)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-08-18 18:31:49 +02:00
Houston (Bot)
92881331d1 [ci] release (#14232)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-15 15:21:32 +01:00
Houston (Bot)
c8202b4576 [ci] release (#14178)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-05 14:55:42 +01:00
Emanuele Stoppa
1e1cef04b5 fix(netlify): update deps (#14175) 2025-08-01 16:42:03 +01:00
Houston (Bot)
0f0a4c44af [ci] release (#14172)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-01 15:43:53 +01:00
Houston (Bot)
5eaf5246f7 [ci] release (#14171)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-31 19:10:56 +01:00
Emanuele Stoppa
9cfccc7b9e [ci] format 2025-07-24 11:32:02 +00:00
Houston (Bot)
9362743424 [ci] release (#14116)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-23 18:14:16 +01:00
Matt Kane
50f25b36de [ci] format 2025-07-23 16:30:43 +00:00
Matt Kane
798b5fa022 fix: adds mock feature flags to the Netlify dev context object (#14120) 2025-07-23 17:29:45 +01:00
Houston (Bot)
d271698d88 [ci] release (#14093)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-21 15:54:43 +01:00
Matt Kane
69d6871e2a fix: upgrade Netlify Vite plugin (#14103)
* fix: upgrade Netlify Vite plugin

* Lock
2025-07-21 11:56:06 +01:00
Houston (Bot)
5ec50888f1 [ci] release (#14072)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-16 17:01:26 +01:00
Matt Kane
8209353bda [ci] format 2025-07-16 15:09:29 +00:00
Matt Kane
38c2255ae7 fix: regressions in Netlify adapter (#14078)
* fix: default Netlify env vars to disabled

* Changesets

* Rename Vite plugin option

* Fix changeset

* Update Netlify Vite plugin

* This is now allowed

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* Show disabling of images

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* Upgrade Netlify Vite plugin

* Add Netlify image tests in dev

* Update test script

* Apply suggestions from code review

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>

* Update .changeset/fifty-pets-knock.md

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>

* Update .changeset/fifty-pets-knock.md

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
2025-07-16 16:08:46 +01:00
Houston (Bot)
7cad7e8d01 [ci] release (#14047)
* [ci] release

* Update packages/integrations/netlify/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-07-14 09:20:05 +01:00
Eduardo Bouças
faa0effe31 feat: add Vite plugin to Netlify adapter (#13768)
* feat: load Netlify Vite plugin

* chore: update `@netlify/vite-plugin`

* update plugin and add tests

* Update pnpm-lock.yaml

* remove unused code

* Deps

* update plugin

* remove unused file

* Apply suggestions from code review

Co-authored-by: Matt Kane <m@mk.gg>

* Upgrade vite plugin

* satisfy linter

* Upgrade vite plugin

* refactor: use Netlify primitives

* make imageCDN an opt out, not an opt in

* remove outside netlify test, for now we are never outside

* update pnpm-lock

* invalidate the astro session when restarting dev server

* Update to latest vite plugin, functions and blobs

* Add changeset for @astrojs/netlify on @netlify/vite-plugin

* apply Sarah's changeset improvements

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: chee <chee.rabbits@netlify.com>
Co-authored-by: chee <chee@rabbits.computer>
Co-authored-by: chee <yay@chee.party>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-07-10 17:17:26 +01:00
Houston (Bot)
88b54d3cba [ci] release (#14033)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-03 12:11:43 +01:00
Emanuele Stoppa
db8f8becc9 feat(node): experimental static headers (#13972)
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>


Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
2025-07-02 11:42:02 +01:00
Emanuele Stoppa
33f2d157e3 chore: upgrade to Biome v2 (#13984) 2025-06-27 13:01:18 +01:00
Houston (Bot)
a08c7e8330 [ci] release (#13940)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-17 09:38:01 +01:00
Emanuele Stoppa
de82ef2454 feat(netlify): add experimental support for static headers (#13952)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>


Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
2025-06-16 17:15:45 +01:00