Help › Install on your site

Install on Astro

Partly builtLast updated

On this page

The Astro integration runs when astro build finishes. It writes translated copies of your pages under a language prefix such as /fr/.

Setup#

In astro.config.mjs, set your site address and add the resilientLang integration with:

Your site setting becomes the base for hreflang and canonical addresses. These must be full addresses, because search engines expect that.

Behaviour#

Security policy#

Astro 6 can write a content security policy as a meta tag with hashes (security.csp, off by default). Scripts from other addresses, such as the loader, need to be allowed in its settings.

Not covered#

Pages made on demand are not prerendered. No search-engine crawl of the output has been done: OPEN. The integration is not published to npm: OPEN.