Properties
Optional adapter
adapter?: {
hooks: {
[k: string]: unknown;
};
name: string;
}
Type declaration
hooks: {
[k: string]: unknown;
}
name: string
build
build: { assets: string; assetsPrefix?: string | { fallback: string; } & Record<string, string>; client: URL; format: "file" | "directory" | "preserve"; inlineStylesheets: "always" | "never" | "auto"; redirects: boolean; server: URL; serverEntry: string; } Type declaration
assets: string
Optional assetsPrefix?: string | {
fallback: string;
} & Record<string, string>
client: URL
format: "file" | "directory" | "preserve"
inlineStylesheets: "always" | "never" | "auto"
redirects: boolean
server: URL
serverEntry: string
compressHTML
compressHTML: boolean
devToolbar
devToolbar: {
enabled: boolean;
}
experimental
experimental: { actions: boolean; clientPrerender: boolean; contentCollectionCache: boolean; contentCollectionJsonSchema: boolean; directRenderScript: boolean; env?: { schema?: Record<string, ({ access: "public"; context: "client"; } | { access: "public"; context: "server"; } | { access: "secret"; context: "server"; }) & ({ default?: string; optional?: boolean; type: "string"; } | { default?: number; optional?: boolean; type: "number"; } | { default?: boolean; optional?: boolean; type: "boolean"; })>; }; globalRoutePriority: boolean; rewriting: boolean; } Type declaration
actions: boolean
clientPrerender: boolean
contentCollectionCache: boolean
contentCollectionJsonSchema: boolean
directRenderScript: boolean
Optional env?: {
schema?: Record<string, ({
access: "public";
context: "client";
} | {
access: "public";
context: "server";
} | {
access: "secret";
context: "server";
}) & ({
default?: string;
optional?: boolean;
type: "string";
} | {
default?: number;
optional?: boolean;
type: "number";
} | {
default?: boolean;
optional?: boolean;
type: "boolean";
})>;
}
Optional schema?: Record<string, ({
access: "public";
context: "client";
} | {
access: "public";
context: "server";
} | {
access: "secret";
context: "server";
}) & ({
default?: string;
optional?: boolean;
type: "string";
} | {
default?: number;
optional?: boolean;
type: "number";
} | {
default?: boolean;
optional?: boolean;
type: "boolean";
})>
globalRoutePriority: boolean
rewriting: boolean
Optional i18n
i18n?: { defaultLocale: string; domains?: Record<string, string>; fallback?: Record<string, string>; locales: (string | { codes: [string, ...string[]]; path: string; })[]; routing: "manual" | { prefixDefaultLocale: boolean; redirectToDefaultLocale: boolean; }; } Type declaration
defaultLocale: string
Optional domains?: Record<string, string>
Optional fallback?: Record<string, string>
locales: (string | {
codes: [string, ...string[]];
path: string;
})[]
routing: "manual" | {
prefixDefaultLocale: boolean;
redirectToDefaultLocale: boolean;
}
image
image: { domains: string[]; endpoint?: string; remotePatterns: { hostname?: string; pathname?: string; port?: string; protocol?: string; }[]; service: { config: Record<string, any>; entrypoint: string; }; } Type declaration
domains: string[]
Optional endpoint?: string
remotePatterns: {
hostname?: string;
pathname?: string;
port?: string;
protocol?: string;
}[]
service: {
config: Record<string, any>;
entrypoint: string;
}
config: Record<string, any>
entrypoint: string
output
output: "server" | "static" | "hybrid"
Optional prefetch
prefetch?: boolean | {
defaultStrategy?: "tap" | "hover" | "viewport" | "load";
prefetchAll?: boolean;
}
Type declaration
Optional defaultStrategy?: "tap" | "hover" | "viewport" | "load"
Optional prefetchAll?: boolean
redirects
redirects: Record<string, string | { destination: string; status: 300 | 301 | 302 | 303 | 304 | 307 | 308; }> scopedStyleStrategy
scopedStyleStrategy: "where" | "class" | "attribute"
security
security: {
checkOrigin: boolean;
}
server
server: { headers?: OutgoingHttpHeaders; host: string | boolean; open: string | boolean; port: number; } Type declaration
host: string | boolean
open: string | boolean
port: number
Optional site
site?: string
trailingSlash
trailingSlash: "ignore" | "always" | "never"
Resolved Astro Config Config with user settings along with all defaults filled in.