mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-16 21:04:34 +00:00
update docs
This commit is contained in:
@@ -7,6 +7,8 @@ Sapper apps run anywhere that supports Node 8 or higher.
|
||||
|
||||
### Deploying to Now
|
||||
|
||||
> This section relates to Now 1, not Now 2
|
||||
|
||||
We can very easily deploy our apps to [Now][]:
|
||||
|
||||
```bash
|
||||
@@ -20,11 +22,11 @@ For other hosting environments, you may need to do `npm run build` yourself.
|
||||
|
||||
### Deploying service workers
|
||||
|
||||
Sapper makes the Service Worker file (`service-worker.js`) unique by including a timestamp in the source code
|
||||
Sapper makes the Service Worker file (`service-worker.js`) unique by including a timestamp in the source code
|
||||
(calculated using `Date.now()`).
|
||||
|
||||
In environments where the app is deployed to multiple servers (such as [Now][]), it is advisable to use a
|
||||
consistent timestamp for all deployments. Otherwise, users may run into issues where the Service Worker
|
||||
|
||||
In environments where the app is deployed to multiple servers (such as [Now][]), it is advisable to use a
|
||||
consistent timestamp for all deployments. Otherwise, users may run into issues where the Service Worker
|
||||
updates unexpectedly because the app hits server 1, then server 2, and they have slightly different timestamps.
|
||||
|
||||
To override Sapper's timestamp, you can use an environment variable (e.g. `SAPPER_TIMESTAMP`) and then modify
|
||||
|
||||
Reference in New Issue
Block a user