You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The `experimental.csp` configuration isn't enabled.
7
+
:::caution[Dépréciée]
8
+
Cette erreur provient d'une ancienne version d'Astro et n'est plus utilisée. Si vous ne pouvez pas mettre à niveau votre projet vers une version plus récente, vous pouvez consulter [des instantanés non maintenus des anciennes documentations](/fr/upgrade-astro/#anciennes-documentations-non-maintenues) pour obtenir de l'aide.
> **ForbiddenRewrite**: You tried to rewrite the on-demand route 'FROM' with the static route 'TO', when using the 'server' output. <br/><br/>The static route 'TO' is rendered by the component
8
-
'COMPONENT', which is marked as prerendered. This is a forbidden operation because during the build the component 'COMPONENT' is compiled to an
8
+
'COMPONENT', which is marked as prerendered. This is a forbidden operation because during the build, the component 'COMPONENT' is compiled to an
9
9
HTML file, which can't be retrieved at runtime by Astro.
> **GetEntryDeprecationError**: The `METHOD` function is deprecated and cannot be used to query the "COLLECTION" collection. Use `getEntry` instead.
8
8
9
9
## Qu'est-ce qui a mal tourné ?
10
-
Les fonctions `getDataEntryById` et `getEntryBySlug` sont dépréciées et ne peuvent pas être utilisées avec les collections utilisant les couches de contenu. Utilisez plutôt la fonction `getEntry`.
10
+
Les fonctions `getDataEntryById` et `getEntryBySlug` sont dépréciées et ne peuvent pas être utilisées avec les collections de contenu. Utilisez plutôt la fonction `getEntry`.
> **GetStaticPathsInvalidRouteParam**: Invalid getStaticPaths route parameter for `KEY`. Expected undefined, a string or a number, received `VALUE_TYPE` (`VALUE`)
7
+
> **GetStaticPathsInvalidRouteParam**: Invalid `getStaticPaths()` route parameter for `KEY`. Expected a string or undefined, received `VALUE_TYPE` (`VALUE`)
8
8
9
9
## Qu'est-ce qui a mal tourné ?
10
10
Etant donné que les `params` sont encodées dans l'URL, seuls certains types sont pris en charge en tant que valeurs.
@@ -14,8 +14,9 @@ Etant donné que les `params` sont encodées dans l'URL, seuls certains types so
14
14
export async function getStaticPaths() {
15
15
return [
16
16
{ params: { id: '1' } } // Fonctionne
17
-
{ params: { id: 2 } } // Fonctionne
17
+
{ params: { id: 2 } } // Ne fonctionne pas
18
18
{ params: { id: false } } // Ne fonctionne pas
19
+
{ params: { id: [1, 2] } } // Ne fonctionne pas
19
20
];
20
21
}
21
22
---
@@ -27,8 +28,8 @@ Dans les routes utilisant les [paramètres du reste](/fr/guides/routing/#paramè
> **i18nNotEnabled**: The `astro:i18n` module can not be used without enabling i18n in your Astro config.
7
+
> **i18nNotEnabled**: The `astro:i18n` module cannot be used without enabling i18n in your Astro config.
8
8
9
9
## Qu'est-ce qui a mal tourné ?
10
10
Le module `astro:i18n` ne peut pas être utilisé sans activer i18n dans votre configuration Astro. Pour activer i18n, ajoutez une locale par défaut et une liste de locales prises en charge à votre configuration Astro :
0 commit comments