@sveltejs/adapter-netlify 1.0.0-next.80 → 1.0.0-next.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/files/edge.js CHANGED
@@ -2,7 +2,7 @@ import { Server } from '0SERVER';
2
2
  import { manifest, prerendered } from 'MANIFEST';
3
3
 
4
4
  const server = new Server(manifest);
5
- const prefix = `/${manifest.appDir}/`;
5
+ const prefix = `/${manifest.appPath}/`;
6
6
 
7
7
  const initialized = server.init({
8
8
  // @ts-ignore
package/index.js CHANGED
@@ -55,15 +55,16 @@ export default function ({ split = false, edge = edge_set_in_env_var } = {}) {
55
55
  builder.log.minor(`Publishing to "${publish}"`);
56
56
 
57
57
  builder.log.minor('Copying assets...');
58
- builder.writeClient(publish);
59
- builder.writePrerendered(publish);
58
+ const publish_dir = `${publish}${builder.config.kit.paths.base}`;
59
+ builder.writeClient(publish_dir);
60
+ builder.writePrerendered(publish_dir);
60
61
 
61
62
  builder.log.minor('Writing custom headers...');
62
63
  const headers_file = join(publish, '_headers');
63
64
  builder.copy('_headers', headers_file);
64
65
  appendFileSync(
65
66
  headers_file,
66
- `\n\n/${builder.config.kit.appDir}/immutable/*\n cache-control: public\n cache-control: immutable\n cache-control: max-age=31536000\n`
67
+ `\n\n/${builder.getAppPath()}/immutable/*\n cache-control: public\n cache-control: immutable\n cache-control: max-age=31536000\n`
67
68
  );
68
69
 
69
70
  if (edge) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-netlify",
3
- "version": "1.0.0-next.80",
3
+ "version": "1.0.0-next.81",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -32,7 +32,7 @@
32
32
  "@rollup/plugin-commonjs": "^23.0.0",
33
33
  "@rollup/plugin-json": "^5.0.0",
34
34
  "@rollup/plugin-node-resolve": "^15.0.0",
35
- "@sveltejs/kit": "1.0.0-next.513",
35
+ "@sveltejs/kit": "1.0.0-next.515",
36
36
  "@types/node": "^16.11.36",
37
37
  "@types/set-cookie-parser": "^2.4.2",
38
38
  "rimraf": "^3.0.2",