Skip to content

Commit

Permalink
fix(hugo): load the hugo renderer wasm from the cdn in the visual editor
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Mar 14, 2022
1 parent 46a0d51 commit e9b9aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Feature: Hugo Bookshop CloudCannon Live Editing Granular Steps
Then stderr should be empty
* stdout should contain "Modifying built site at ./site/public"
* stdout should contain "Added live editing to 1 page containing Bookshop components"
* site/public/_cloudcannon/info.json should exist
* site/public/_cloudcannon/bookshop-live.js should contain the text "hugo_renderer-"

@web
Scenario: Bookshop live renders when CloudCannon initialises
Expand Down
3 changes: 2 additions & 1 deletion javascript-modules/live/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const runner = async (options) => {
},
exclude: JSON.stringify(options.exclude || []),
onlyEngines: options.onlyEngines,
bookshopDirs: bookshopDirs
bookshopDirs: bookshopDirs,
hosted: true
}

const output = await Builder(builderOptions);
Expand Down

0 comments on commit e9b9aaf

Please sign in to comment.