
đż Minor Changes
-
#12039
710a1a1Thanks @ematipico! - Adds amarkdown.shikiConfig.langAliasoption that allows aliasing a non-supported code language to a known language. This is useful when the language of your code samples is not a built-in Shiki language, but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.The following example configures Shiki to highlight
cjscode blocks using thejavascriptsyntax highlighter:import { defineConfig } from 'astro/config';export default defineConfig({markdown: {shikiConfig: {langAlias: {cjs: 'javascript',},},},});Then in your Markdown, you can use the alias as the language for a code block for syntax highlighting:
```cjs'use strict';function commonJs() {return 'I am a commonjs file';}``` -
#11984
3ac2263Thanks @chaegumi! - Adds a newbuild.concurrenyconfiguration option to specify the number of pages to build in parallelIn most cases, you should not change the default value of
1.Use this option only when other attempts to reduce the overall rendering time (e.g. batch or cache long running tasks like fetch calls or data access) are not possible or are insufficient.
Use this option only if the refactors are not possible. If the number is set too high, the page rendering may slow down due to insufficient memory resources and because JS is single-threaded.
[!WARNING] This feature is stable and is not considered experimental. However, this feature is only intended to address difficult performance issues, and breaking changes may occur in a minor release to keep this option as performant as possible.
astro.config.mjs import { defineConfig } from 'astro';export default defineConfig({build: {concurrency: 2,},});
đ Patch Changes
-
#12160
c6fd1dfThanks @louisescher! - Fixes a bug whereastro.config.mtsandastro.config.ctswerenât reloading the dev server upon modifications. -
#12130
e96bcaeThanks @thehansys! - Fixes a bug in the parsing ofx-forwarded-\*Requestheaders, where multiple values assigned to those headers were not correctly parsed.Now, headers like
x-forwarded-proto: https,httpare correctly parsed. -
#12147
9db755aThanks @ascorbic! - Skips setting statusMessage header for HTTP/2 responseHTTP/2 doesnât support status message, so setting this was logging a warning.
-
#12151
bb6d37fThanks @ematipico! - Fixes an issue whereAstro.currentLocalewasnât incorrectly computed when thedefaultLocalebelonged to a custom locale path. -
Updated dependencies [
710a1a1]:- @astrojs/markdown-remark@5.3.0