@sveltejs/adapter-netlify 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -104,6 +104,12 @@ Additionally, you can add your own Netlify functions by creating a directory for
104
104
  directory = "functions"
105
105
  ```
106
106
 
107
+ ## Troubleshooting
108
+
109
+ ### Accessing the file system
110
+
111
+ You can't access the file system through methods like `fs.readFileSync` in Serverless/Edge environments. If you need to access files that way, do that during building the app through [prerendering](https://kit.svelte.dev/docs/page-options#prerender). If you have a blog for example and don't want to manage your content through a CMS, then you need to prerender the content (or prerender the endpoint from which you get it) and redeploy your blog everytime you add new content.
112
+
107
113
  ## Changelog
108
114
 
109
115
  [The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/master/packages/adapter-netlify/CHANGELOG.md).
@@ -12,15 +12,20 @@ import 'worker_threads';
12
12
  import 'perf_hooks';
13
13
  import 'util/types';
14
14
  import 'url';
15
- import 'string_decoder';
16
15
  import 'events';
17
16
  import 'tls';
18
17
  import 'async_hooks';
19
18
  import 'console';
20
19
  import 'zlib';
20
+ import 'string_decoder';
21
21
  import 'crypto';
22
+ import 'diagnostics_channel';
22
23
 
23
- var setCookie = {exports: {}};
24
+ var setCookieExports = {};
25
+ var setCookie = {
26
+ get exports(){ return setCookieExports; },
27
+ set exports(v){ setCookieExports = v; },
28
+ };
24
29
 
25
30
  var defaultParseOptions = {
26
31
  decodeValues: true,
@@ -237,9 +242,9 @@ function splitCookiesString(cookiesString) {
237
242
  }
238
243
 
239
244
  setCookie.exports = parse;
240
- setCookie.exports.parse = parse;
241
- setCookie.exports.parseString = parseString;
242
- var splitCookiesString_1 = setCookie.exports.splitCookiesString = splitCookiesString;
245
+ setCookieExports.parse = parse;
246
+ setCookieExports.parseString = parseString;
247
+ var splitCookiesString_1 = setCookieExports.splitCookiesString = splitCookiesString;
243
248
 
244
249
  /**
245
250
  * Splits headers into two categories: single value and multi value