@sveltejs/adapter-vercel 1.0.0-next.64 → 1.0.0-next.67

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.
@@ -7,6 +7,10 @@ installPolyfills();
7
7
 
8
8
  const server = new Server(manifest);
9
9
 
10
+ server.init({
11
+ env: process.env
12
+ });
13
+
10
14
  /**
11
15
  * @param {import('http').IncomingMessage} req
12
16
  * @param {import('http').ServerResponse} res
package/index.js CHANGED
@@ -186,7 +186,7 @@ export default function ({ external = [], edge, split } = {}) {
186
186
  outfile: `${dirs.functions}/${name}.func/index.js`,
187
187
  target: 'es2020', // TODO verify what the edge runtime supports
188
188
  bundle: true,
189
- platform: 'node',
189
+ platform: 'browser',
190
190
  format: 'esm',
191
191
  external,
192
192
  sourcemap: 'linked'
@@ -236,7 +236,6 @@ export default function ({ external = [], edge, split } = {}) {
236
236
 
237
237
  builder.log.minor('Copying assets...');
238
238
 
239
- builder.writeStatic(dirs.static);
240
239
  builder.writeClient(dirs.static);
241
240
  builder.writePrerendered(dirs.static);
242
241
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "1.0.0-next.64",
3
+ "version": "1.0.0-next.67",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -23,18 +23,17 @@
23
23
  "index.d.ts"
24
24
  ],
25
25
  "dependencies": {
26
- "@vercel/nft": "^0.20.0",
26
+ "@vercel/nft": "^0.21.0",
27
27
  "esbuild": "^0.14.48"
28
28
  },
29
29
  "devDependencies": {
30
- "@sveltejs/kit": "1.0.0-next.378",
30
+ "@sveltejs/kit": "1.0.0-next.428",
31
31
  "@types/node": "^16.11.36",
32
32
  "typescript": "^4.7.4"
33
33
  },
34
34
  "scripts": {
35
- "lint": "eslint --ignore-path .gitignore \"**/*.{ts,js,svelte}\" && npm run check-format",
36
- "format": "npm run check-format -- --write",
37
- "check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
35
+ "lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
36
+ "format": "npm run lint -- --write",
38
37
  "check": "tsc"
39
38
  }
40
39
  }