The web framework for content-driven websites. ⭐️ Star to support our work!
OTHER License
Published by astrobot-houston about 1 year ago
ed54d4644
Thanks @FredKSchott! - Improve config info telemetryPublished by astrobot-houston about 1 year ago
Published by astrobot-houston about 1 year ago
#8595 5b0b3c9a8
Thanks @alexanderniebuhr! - Add support for the following Node.js Runtime APIs, which are availabe in Cloudflare using the node:
syntax.
import { Buffer } from 'node:buffer';
bcad715ce
, bdd267d08
, e522a5eb4
, ed54d4644
, 70f2a8003
, 4398e9298
, 8f8b9069d
, 5a988eaf6
]:
Published by astrobot-houston about 1 year ago
#8612 bcad715ce
Thanks @matthewp! - Ensure cookies are attached when middleware changes the Response
#8598 bdd267d08
Thanks @Princesseuh! - Fix relative images in Markdown breaking the build process in certain circumstances
#8382 e522a5eb4
Thanks @DerTimonius! - Do not throw an error for an empty collection directory.
#8600 ed54d4644
Thanks @FredKSchott! - Improve config info telemetry
#8592 70f2a8003
Thanks @bluwy! - Fix alias plugin causing CSS ordering issue
#8614 4398e9298
Thanks @lilnasy! - Fixed an issue where spaces and unicode characters in project path prevented middleware from running.
#8603 8f8b9069d
Thanks @matthewp! - Prevent body scripts from re-executing on navigation
#8609 5a988eaf6
Thanks @bluwy! - Fix Astro HMR from a CSS dependency
Updated dependencies [ed54d4644
]:
Published by astrobot-houston about 1 year ago
#8581 d0e513f21
Thanks @rishi-raj-jain! - log only once in serverless adapter
Published by astrobot-houston about 1 year ago
#8560 3da5d8404
Thanks @alexanderniebuhr! - add the option to type environment variables using a generic
Updated dependencies [8d361169b
, 95b5f6280
, 0586e20e8
]:
Published by astrobot-houston about 1 year ago
1d5b3f079
Thanks @jacobthesheep! - Adds --yes
and dry-run
flags to project-name and the yes
flag to template.Published by astrobot-houston about 1 year ago
#8580 8d361169b
Thanks @rishi-raj-jain! - add hide to style & script generated for island
#8568 95b5f6280
Thanks @Princesseuh! - Fix small types issues related to astro:assets
's AVIF support and getImage
#8579 0586e20e8
Thanks @rishi-raj-jain! - show redirect symbol as of the page
Published by astrobot-houston about 1 year ago
Published by astrobot-houston about 1 year ago
#8445 91380378c
Thanks @Princesseuh! - Adds a configuration option devImageService
to choose which of the built-in image services to use in development. Defaults to sharp
.
#8546 b79e11f3c
Thanks @matthewp! - Turn off functionPerRoute
by default
In the previous version of @astrojs/vercel
, the default for functionPerRoute
was changed to true
. While this option has several advantages, if you're a free tier user you are likely to run into the limit of 12 functions per deployment. This will result in an error when you attempt to deploy.
For this reason, the functionPerRoute
option is now back to defaulting to false
. It's still a useful option if you have a paid plan and have previously run into issues with your single function exceeding the size limits.
#8021 2e8726fee
Thanks @chriswdmr! - Enable Vercel Speed Insights and Vercel Web Analytics individually.
Deprecates the analytics
property in astro.config.mjs
in favor of speedInsights
and webAnalytics
.
If you're using the analytics
property, you'll need to update your config to use the new properties:
// astro.config.mjs
export default defineConfig({
adapter: vercel({
- analytics: true,
+ webAnalytics: {
+ enabled: true
+ },
+ speedInsights: {
+ enabled: true
+ }
})
});
Allow configuration of Web Analytics with all available configuration options.
Bumps @vercel/analytics package to the latest version.
Published by astrobot-houston about 1 year ago
#8468 a8d72ceae
Thanks @bholmesdev! - Support the img
component export for optimized images. This allows you to customize how optimized images are styled and rendered.
When rendering an optimized image, Astro will pass the ImageMetadata
object to your img
component as the src
prop. For unoptimized images (i.e. images using URLs or absolute paths), Astro will continue to pass the src
as a string.
This example handles both cases and applies custom styling:
---
// src/components/MyImage.astro
import type { ImageMetadata } from 'astro';
import { Image } from 'astro:assets';
type Props = {
src: string | ImageMetadata;
alt: string;
};
const { src, alt } = Astro.props;
---
{
typeof src === 'string' ? (
<img class="custom-styles" src={src} alt={alt} />
) : (
<Image class="custom-styles" {src} {alt} />
)
}
<style>
.custom-styles {
border: 1px solid red;
}
</style>
Now, this components can be applied to the img
component props object or file export:
import MyImage from '../../components/MyImage.astro';
export const components = { img: MyImage };
# My MDX article
Published by astrobot-houston about 1 year ago
ed952b4ce
Thanks @natemoo-re! - Improve startup performance by removing dependencies, lazily initializing async contextual valuesPublished by astrobot-houston about 1 year ago
#8467 ecc65abbf
Thanks @Princesseuh! - Add a new image.endpoint
setting to allow using a custom endpoint in dev and SSR
#8518 2c4fc878b
Thanks @Princesseuh! - Adds support for using AVIF (.avif
) files with the Image component. Importing an AVIF file will now correctly return the same object shape as other image file types. See the Image docs for more information on the different properties available on the returned object.
#8464 c92e0acd7
Thanks @Princesseuh! - Add types for the object syntax for style
(ex: style={{color: 'red'}}
)
#8532 7522bb491
Thanks @bluwy! - Improve markdown rendering performance by sharing processor instance
#8537 f95febf96
Thanks @martrapp! - bugfix checking media-type in client-side router
#8536 b85c8a78a
Thanks @Princesseuh! - Improved error messages around astro:assets
#7607 45364c345
Thanks @FineWolf! - Add CollectionKey
, ContentCollectionKey
, and DataCollectionKey
exports to astro:content
Updated dependencies [d93987824
, 7522bb491
]:
Published by astrobot-houston about 1 year ago
2c9614469
Thanks @alexanderniebuhr! - Add support for Cloudflare Runtime (env vars, caches and req object), using astro dev
Published by astrobot-houston about 1 year ago
#8484 78b82bb39
Thanks @bb010g! - fix(astro): add support for src/content/config.mts
files
#8504 5e1099f68
Thanks @ematipico! - Minify the HTML of the redicts emitted during the build.
#8480 644825845
Thanks @yamanoku! - Do not add type="text/css" to inline style tag
#8472 fa77fa63d
Thanks @matthewp! - Prevent client:only styles from being removed in dev (View Transitions)
#8506 23f9536de
Thanks @mascii! - chore: correct description of attribute
option in scopedStyleStrategy
#8505 2db9762eb
Thanks @martrapp! - Restore horizontal scroll position on history navigation (view transitions)
#8461 435b10549
Thanks @rdwz! - Fix lang unspecified code blocks (markdownlint MD040)
#8492 a6a516d94
Thanks @xiBread! - fix(types): make image.service
optional
#8522 43bc5f2a5
Thanks @martrapp! - let view transitions handle same origin redirects
#8491 0ca332ba4
Thanks @martrapp! - Bugfixes for back navigation in the view transition client-side router
Published by astrobot-houston about 1 year ago
Published by astrobot-houston about 1 year ago
Published by astrobot-houston about 1 year ago
#8452 7ea32c7fb
Thanks @Princesseuh! - Fix Astro's domains
and remotePatterns
not being used by Vercel when using Vercel Image Optimization
Published by astrobot-houston about 1 year ago
#8448 3f49aa97a
Thanks @natemoo-re! - Fix potential memory leak when component is unmounted
Published by astrobot-houston about 1 year ago
a525d5db1
Thanks @ryansolid! - Fix hydration in Solid renderer