π Patch Changes
- #13355
042d1deThanks @ematipico! - Adds documentation to the assets utilities for remote service images.
042d1de Thanks @ematipico! - Adds documentation to the assets utilities for remote service images.20463a6c1e1271d8dc3cb0ab3419ee5c72abd218 Thanks @Princesseuh! - Add removeBase function#10189 1ea0a25b94125e4f6f2ac82b42f638e22d7bdffd Thanks @peng! - Adds the option to pass an object to build.assetsPrefix. This allows for the use of multiple CDN prefixes based on the target file type.
When passing an object to build.assetsPrefix, you must also specify a fallback domain to be used for all other file types not specified.
Specify a file extension as the key (e.g. βjsβ, βpngβ) and the URL serving your assets of that file type as the value:
import { defineConfig } from 'astro/config';
export default defineConfig({ build: { assetsPrefix: { js: 'https://js.cdn.example.com', mjs: 'https://js.cdn.example.com', // if you have .mjs files, you must add a new entry like this png: 'https://images.cdn.example.com', fallback: 'https://generic.cdn.example.com', }, },});#8188 d0679a666 Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
#8179 6011d52d3 Thanks @matthewp! - Astro 3.0 Release Candidate
6035bb35f Thanks @natemoo-re! - Add collapseDuplicateSlashes helper1eae2e3f7 Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.