Skip to content

Commit

Permalink
Apply comment suggestions from Barrie
Browse files Browse the repository at this point in the history
Co-authored-by: Barrie Byron <[email protected]>
  • Loading branch information
ymekuria and barriebyron authored Aug 17, 2023
1 parent 8062a10 commit e6bc0a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/zkapps/04-zkapp-browser-ui/ui/ghp-postbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs');
const path = require('path');

// This script modifies the built CSS files and prepends the repo-name to the asset URLs.
// to be compatible with github pages deployment.
// to be compatible with GitHub Pages deployment.
const cssDir = path.join(__dirname, '/out/_next/static/css');
// Update your repository name here if it is different from the project name.
let repoURL = '04-zkapp-browser-ui';
Expand Down
2 changes: 1 addition & 1 deletion examples/zkapps/04-zkapp-browser-ui/ui/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const nextConfig = {
* when deployed to GitHub Pages. The assetPrefix needs to be added manually to any assets
* if they're not loaded by Next.js' automatic handling (for example, in CSS files or in a <img> element).
* The 'ghp-postbuild.js' script in this project prepends the repo name to asset urls in the built css files
* after runing 'npm run deploy'.
* after running 'npm run deploy'.
*/
basePath: process.env.NODE_ENV === 'production' ? '/04-zkapp-browser-ui' : '', // update basePath if you change your repo name
assetPrefix: process.env.NODE_ENV === 'production' ? '/04-zkapp-browser-ui' : '' // update assetPrefix if you change your repo name.
Expand Down

0 comments on commit e6bc0a9

Please sign in to comment.