-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add baking script for archival bakes (#4502)
* wip: add (very basic) bake script for archival * feat(bake): allow passing in an assetMap * enhance: pass assetMap all the way down * enhance: actually hash & copy over assets * enhance: bake dods & variable files * enhance: resolve runtime assets, too, and change to absolute paths * fix: use correct assets in preload directives * enhance: better asset path construction * enhance: use base36 hashes * enhance: create a manifest alongside archived grapher page * enhance: put grapher page into date-stamped dir * refactor: rename `viteAssetMap` -> `staticAssetMap` * enhance: copy over static files from `public/` folder * refactor: rename `AssetMapEntry` -> `AssetMap` * refactor: pull out hashing * enhance: build some safety around assetMap reads * enhance: allow copying to `latest` dir * enhance: make source maps work * feat: directly hash a stream * enhance: properly content-hash `owid.mjs` file * enhance: report failures to Sentry * enhance: better error handling * refactor: make `runtimeAssetMap` available under `window._OWID_RUNTIME_ASSET_MAP` * enhance: also handle old-style grapher pages * refactor: only set `_OWID_RUNTIME_ASSET_MAP` if present * style: remove unnecessary import * fix: import Sentry instrumentation
- Loading branch information
1 parent
d81e999
commit 6f6d734
Showing
19 changed files
with
742 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ dist/ | |
**/tsup.config.bundled*.mjs | ||
cfstorage/ | ||
vite.*.mjs | ||
archive/* | ||
|
||
# Sentry Config File | ||
.env.sentry-build-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.