diff --git a/index.js b/index.js index 7c64eb1..90b34ce 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ export default function ({ // use posix because of https://github.com/sveltejs/kit/pull/3200 const relativePath = posix.relative(tmp, builder.getServerDirectory()); - builder.copy(join(files, 'entry.js'), entry, { + builder.copy(files, tmp, { replace: { SERVER: `${relativePath}/index.js`, MANIFEST: './manifest.js', @@ -75,8 +75,6 @@ export default function ({ })};\n` ); - builder.copy(join(files, 'api'), apiDir); - /** @type {BuildOptions} */ const default_options = { entryPoints: [entry],