#112344385bf7 Thanks @ematipico! - Adds a new function called addServerRenderer to the Container API. Use this function to manually store renderers inside the instance of your container.
This new function should be preferred when using the Container API in environments like on-demand pages:
import type { APIRoute } from 'astro';
import { experimental_AstroContainer } from 'astro/container';
import reactRenderer from '@astrojs/react/server.js';
import vueRenderer from '@astrojs/vue/server.js';
import ReactComponent from '../components/button.jsx';
import VueComponent from '../components/button.vue';
// MDX runtime is contained inside the Astro core
import mdxRenderer from 'astro/jsx/server.js';
// In case you need to import a custom renderer
import customRenderer from '../renderers/customRenderer.js';
export const GET: APIRoute = async (ctx) => {
const container = await experimental_AstroContainer.create();
container.addServerRenderer({ renderer: reactRenderer });
container.addServerRenderer({ renderer: vueRenderer });
container.addServerRenderer({ renderer: customRenderer });
// You can pass a custom name too
container.addServerRenderer({
name: 'customRenderer',
renderer: customRenderer,
});
const vueComponent = await container.renderToString(VueComponent);
return await container.renderToResponse(Component);
};
#112344385bf7 Thanks @ematipico! - Adds a new function called addServerRenderer to the Container API. Use this function to manually store renderers inside the instance of your container.
This new function should be preferred when using the Container API in environments like on-demand pages:
import type { APIRoute } from 'astro';
import { experimental_AstroContainer } from 'astro/container';
import reactRenderer from '@astrojs/react/server.js';
import vueRenderer from '@astrojs/vue/server.js';
import ReactComponent from '../components/button.jsx';
import VueComponent from '../components/button.vue';
// MDX runtime is contained inside the Astro core
import mdxRenderer from 'astro/jsx/server.js';
// In case you need to import a custom renderer
import customRenderer from '../renderers/customRenderer.js';
export const GET: APIRoute = async (ctx) => {
const container = await experimental_AstroContainer.create();
container.addServerRenderer({ renderer: reactRenderer });
container.addServerRenderer({ renderer: vueRenderer });
container.addServerRenderer({ renderer: customRenderer });
// You can pass a custom name too
container.addServerRenderer({
name: 'customRenderer',
renderer: customRenderer,
});
const vueComponent = await container.renderToString(VueComponent);
return await container.renderToResponse(Component);
};
#111349042be0 Thanks @florian-lefebvre! - Improves the developer experience of the 500.astro file by passing it a new error prop.
When an error is thrown, the special src/pages/500.astro page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.
If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.
Patch Changes
#11280fd3645f Thanks @ascorbic! - Fixes a bug that prevented cookies from being set when using experimental rewrites
#111349042be0 Thanks @florian-lefebvre! - Improves the developer experience of the 500.astro file by passing it a new error prop.
When an error is thrown, the special src/pages/500.astro page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.
If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.
Patch Changes
#11280fd3645f Thanks @ascorbic! - Fixes a bug that prevented cookies from being set when using experimental rewrites
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the patch-minor group with 5 updates:
5.5.0
5.6.0
7.7.0
7.7.1
4.10.2
4.11.0
0.6.4
0.6.5
5.4.5
5.5.2
Updates
@astrojs/svelte
from 5.5.0 to 5.6.0Release notes
Sourced from
@astrojs/svelte
's releases.Changelog
Sourced from
@astrojs/svelte
's changelog.Commits
83c565b
[ci] release (#11233)68f1d0d
chore(deps): update all non-major dependencies (#11269)fd9da98
feat: refine container APIs for renderers (#11251)8725cb2
fix(deps): update all non-major dependencies (#11222)Updates
@astrojs/vercel
from 7.7.0 to 7.7.1Release notes
Sourced from
@astrojs/vercel
's releases.Changelog
Sourced from
@astrojs/vercel
's changelog.Commits
83c565b
[ci] release (#11233)e22be22
Refactor prerendering chunk handling (#11245)68f1d0d
chore(deps): update all non-major dependencies (#11269)1296cb9
[ci] formatf5f8ed2
Fix backwards compat with Astro <= 4.9 (#11261)ebe01c7
[ci] format24ce898
In Vercel Edge, include cookies set by Astro.cookies.set (#11227)Updates
astro
from 4.10.2 to 4.11.0Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
Commits
58a3211
[ci] release (#11276)fd3645f
fix: allow cookies to be set in rewritten responses (#11280)7f8f347
bug: removes type override from defineAction (#11292)42a6ece
[ci] format5a9c9a6
fix(astro): type generation for empty collections (#11264)246bd7a
[ci] format4b46bd9
feat: addShikiTransformer
support to the\<Code />
component (#11197)5c56324
[ci] format9042be0
feat: 500.astro improvements (#11134)c44f7f4
[ci] formatUpdates
prettier-plugin-tailwindcss
from 0.6.4 to 0.6.5Release notes
Sourced from prettier-plugin-tailwindcss's releases.
Changelog
Sourced from prettier-plugin-tailwindcss's changelog.
Commits
efea6f9
0.6.5642a97c
Update changeloga5506a9
Only re-apply string escaping when necessary (#295)ec92b76
Tweak readmeUpdates
typescript
from 5.4.5 to 5.5.2Release notes
Sourced from typescript's releases.
Commits
ce2e60e
Update LKGf3b21a2
🤖 Pick PR #58931 (Defer creation of barebonesLibSourc...) into release-5.5 (#...7b1620b
🤖 Pick PR #58811 (fix(58801): "Move to file" on globa...) into release-5.5 (#...5367ae1
Bump version to 5.5.2 and LKG02132e5
🤖 Pick PR #58895 (Fix global when typescript.js loade...) into release-5.5 (#...45b1e3c
🤖 Pick PR #58872 (Fix declaration emit crash) into release-5.5 (#58874)17933ee
🤖 Pick PR #58810 (Fixed declaration emit issue relate...) into release-5.5 (#...552b07e
🤖 Pick PR #58786 (Fixed declaration emit crash relate...) into release-5.5 (#...39c9eeb
Pick #58857 to release-5.5 (#58858)2b0009c
🤖 Pick PR #58846 (Ensure the updates with crashes rev...) into release-5.5 (#...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show