Skip to content

Commit

Permalink
gitignore gateway-bundle/dist
Browse files Browse the repository at this point in the history
elliotBraem committed Sep 28, 2024
1 parent b612def commit 7f47aac
Showing 93 changed files with 9 additions and 462,331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
# production
/build
/dist
/gateway-bundle/dist

# misc
.DS_Store
2 changes: 1 addition & 1 deletion bos.config.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"aliases": ["./aliases.mainnet.json"],
"index": "example.near/widget/Index",
"gateway": {
"bundleUrl": "./dist",
"bundleUrl": "./gateway-bundle/dist",
"tagName": "near-social-viewer"
},
"ipfs": {
6 changes: 6 additions & 0 deletions gateway-bundle/README.md
Original file line number Diff line number Diff line change
@@ -73,3 +73,9 @@ Rather than deploying to a hosting provider like Vercel, this repository comes e
3. Configure with the web4 account and run `pnpm run web4:deploy`

This final command will upload the `/dist` to [NEARFS](https://github.com/vgrichina/nearfs) and then call `web4_setStaticUrl` on your web4 contract to point to this uploaded bundle.

## Development

1. Configure [bos.config.json](../bos.config.json) `gateway.bundleUrl` to be a relative path to this custom gateway's dist, e.g. `./gateway-bundle/dist`
2. Make sure you have the dev command running for this, `pnpm run dev:gateway` from root, or `pnpm run dev` from here.
3. Once there has been as successful build, this prepares the `main.bundle.js` needed
8 changes: 0 additions & 8 deletions gateway-bundle/dist/-_fde60.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions gateway-bundle/dist/-_fde61.bundle.js

This file was deleted.

240 changes: 0 additions & 240 deletions gateway-bundle/dist/404.html

This file was deleted.

95 changes: 0 additions & 95 deletions gateway-bundle/dist/asset-manifest.json

This file was deleted.

240 changes: 0 additions & 240 deletions gateway-bundle/dist/index.html

This file was deleted.

Loading

0 comments on commit 7f47aac

Please sign in to comment.