Skip to main content

$app/manifest

import { 
const assets: {
    path: import("$app/types").AssetPath;
}[]

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(...).

assets
,
const immutable: {
    path: string;
}[]

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.

immutable
,
const prerendered: {
    path: import("$app/types").Path;
}[]

An array of { path: Path } objects representing prerendered pages and endpoints, relative to the base path. During development, this is an empty array.

prerendered
,
const routes: {
    id: import("$app/types").RouteId;
}[]

An array of objects with an id property representing the routes in your app.

routes
} from '$app/manifest';

This module is available to service workers and other contexts. It exports information about the build output, static files, prerendered pages, and routes.

assets

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(...).

const assets: Array<{
	path: import('$app/types').AssetPath;
}>;

immutable

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.

const immutable: Array<{ path: string }>;

prerendered

An array of { path: Path } objects representing prerendered pages and endpoints, relative to the base path. During development, this is an empty array.

const prerendered: Array<{
	path: import('$app/types').Path;
}>;

routes

An array of objects with an id property representing the routes in your app.

const routes: Array<{ id: import('$app/types').RouteId }>;

Edit this page on GitHub llms.txt