An array of { path: AssetPath } objects representing the files in your static directory, or whatever directory is specified by config.files.assets.
The path is relative to the base path, and can be used with asset(...).
An array of { path: string } objects representing the files generated by Vite.
The path is relative to the base path, and is intended for use with cache.add(...) inside a service worker.
During development, this is an empty array.
An array of { path: Path } objects representing prerendered pages and endpoints, relative to the base path.
During development, this is an empty array.
An array of objects representing the routes in your app. Only routes that the router can match
are included — directories that merely hold a +layout are not routes of their own.
Each object has an id, plus page and endpoint booleans describing whether the route has a
+page and/or a +server. Both are true for a route that has both, so the capabilities can
be filtered independently:
Ce module est rendu disponible aux service workers et aux autres
contextes.
Il exporte des informations au sujet de la sortie compilée, des fichiers statiques, des pages
pré-rendues, et des routes
assets
Un tableau d’objets { path: AssetPath } représentant les fichiers de votre dossier static, ou de
n’importe quel dossier précisé dans config.files.assets.
Le chemin est relatif au chemin de base, et peut être utilisé
avec asset(...).
Un tableau d’objets { path: string } représentant les fichiers générés par Vite. Le chemin est
relatif au chemin de base, et prévu pour être utilisé avec
cache.add(...) au sein d’service worker.
Pendant le développement, c’est un tableau vide.
constimmutable:Array<{path:string}>;
prerendered
Un tableau d’objets { path: Path } représentant les pages et endpoints pré-rendus, relativement au
chemin de base.
Pendant le développement, c’est un tableau vide.
Un tableau d’objets représentant les routes de votre application. Seules les routes que le router
peut faire correspondre sont incluses — les dossiers qui ne comportent qu’un +layout ne sont pas
des routes en eux-mêmes.
Chaque objet a un id, plus des booléens page et endpoint décrivant si oui ou non la route a
un fichier +page et/ou un fichier +server. Les deux valent true pour une route qui possèdent
les deux, afin de pouvoir filtrer leurs fonctionnalités indépendamment :
An array of objects representing the routes in your app. Only routes that the router can match
are included — directories that merely hold a +layout are not routes of their own.
Each object has an id, plus page and endpoint booleans describing whether the route has a
+page and/or a +server. Both are true for a route that has both, so the capabilities can
be filtered independently:
An array of objects representing the routes in your app. Only routes that the router can match
are included — directories that merely hold a +layout are not routes of their own.
Each object has an id, plus page and endpoint booleans describing whether the route has a
+page and/or a +server. Both are true for a route that has both, so the capabilities can
be filtered independently:
An array of objects representing the routes in your app. Only routes that the router can match
are included — directories that merely hold a +layout are not routes of their own.
Each object has an id, plus page and endpoint booleans describing whether the route has a
+page and/or a +server. Both are true for a route that has both, so the capabilities can
be filtered independently:
Une route de votre application, avec ses fonctionnalités. page indique la présence d’un fichier
+page tandis que endpoint indique la présence d’un fichier +server. Les deux valent true
lorsque les deux fichiers existent :