diff --git a/.changeset/grumpy-maps-complain.md b/.changeset/grumpy-maps-complain.md new file mode 100644 index 000000000000..72100d1464cd --- /dev/null +++ b/.changeset/grumpy-maps-complain.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +[breaking] remove `getStaticDirectory()` from builder API diff --git a/packages/kit/src/core/adapt/builder.js b/packages/kit/src/core/adapt/builder.js index 39f78fda30f4..e9e0dbf71cce 100644 --- a/packages/kit/src/core/adapt/builder.js +++ b/packages/kit/src/core/adapt/builder.js @@ -126,10 +126,6 @@ export function create_builder({ config, build_data, routes, prerendered, log }) return `${config.kit.outDir}/output/server`; }, - getStaticDirectory() { - return config.kit.files.assets; - }, - getAppPath() { return build_data.app_path; }, diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index cdfe21595d03..ea7672e19a7d 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -77,7 +77,6 @@ export interface Builder { getBuildDirectory(name: string): string; getClientDirectory(): string; getServerDirectory(): string; - getStaticDirectory(): string; /** The application path including any configured base path */ getAppPath(): string;