Skip to content

Commit 4a9bde3

Browse files
committed
revert name change from last commit
1 parent 25e5024 commit 4a9bde3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/adapter-netlify/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function ({ split = false, edge = edge_set_in_env_var } = {}) {
6363
builder.copy('_headers', headers_file);
6464
appendFileSync(
6565
headers_file,
66-
`\n\n/${builder.getAppDirectory()}/immutable/*\n cache-control: public\n cache-control: immutable\n cache-control: max-age=31536000\n`
66+
`\n\n/${builder.getAppPath()}/immutable/*\n cache-control: public\n cache-control: immutable\n cache-control: max-age=31536000\n`
6767
);
6868

6969
if (edge) {

packages/adapter-vercel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function ({ external = [], edge, split } = {}) {
118118
...redirects[builder.config.kit.trailingSlash],
119119
...prerendered_redirects,
120120
{
121-
src: `/${builder.getAppDirectory()}/.+`,
121+
src: `/${builder.getAppPath()}/.+`,
122122
headers: {
123123
'cache-control': 'public, immutable, max-age=31536000'
124124
}

packages/kit/src/core/adapt/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function create_builder({ config, build_data, routes, prerendered, log })
128128
return config.kit.files.assets;
129129
},
130130

131-
getAppDirectory() {
131+
getAppPath() {
132132
return build_data.app_dir;
133133
},
134134

packages/kit/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export interface Builder {
8585
getClientDirectory(): string;
8686
getServerDirectory(): string;
8787
getStaticDirectory(): string;
88-
/** The application directory including any configured base path */
89-
getAppDirectory(): string;
88+
/** The application path including any configured base path */
89+
getAppPath(): string;
9090

9191
/**
9292
* @param dest the destination folder to which files should be copied

0 commit comments

Comments
 (0)