Skip to content

Commit

Permalink
ok i think i got it now
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 21, 2022
1 parent 3947e53 commit 539c82b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/kit/src/core/build/build_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { s } from '../../utils/misc.js';
* }} opts
* @returns
*/
const app_template = ({ config, hooks, has_service_worker, template }) => `
const server_template = ({ config, hooks, has_service_worker, template }) => `
import root from '__GENERATED__/root.svelte';
import { respond } from '${runtime}/server/index.js';
import { set_paths, assets, base } from '${runtime}/paths.js';
Expand Down Expand Up @@ -139,7 +139,7 @@ export async function build_server(

/** @type {Record<string, string>} */
const input = {
app: `${build_dir}/index.js`
index: `${build_dir}/index.js`
};

// add entry points for every endpoint...
Expand Down Expand Up @@ -172,8 +172,8 @@ export async function build_server(
};

fs.writeFileSync(
input.app,
app_template({
input.index,
server_template({
config,
hooks: app_relative(hooks_file),
has_service_worker: service_worker_register && !!service_worker_entry_file,
Expand Down

0 comments on commit 539c82b

Please sign in to comment.