Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 30, 2022
1 parent 0779f6b commit 1871151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/kit/src/core/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ function process_config(config, { cwd = process.cwd() } = {}) {
validated.kit.outDir = path.resolve(cwd, validated.kit.outDir);

for (const key in validated.kit.files) {
// TODO remove for 1.0
if (key === 'template') continue;

// @ts-expect-error this is typescript at its stupidest
validated.kit.files[key] = path.resolve(cwd, validated.kit.files[key]);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function data_response(data) {
* @param {string} message
*/
export function static_error_page(options, status, message) {
return new Response(options.error_page({ status, message }), {
return new Response(options.error_template({ status, message }), {
headers: { 'content-type': 'text/html; charset=utf-8' },
status
});
Expand Down

0 comments on commit 1871151

Please sign in to comment.