Skip to content

Commit

Permalink
fix: github pages urls
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Oct 20, 2023
1 parent bf80295 commit bbd48fd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion config/chains.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
reactStrictMode: true,
assetPrefix: process.env.ASSET_PREFIX || '',
}
reactStrictMode: true,
assetPrefix: process.env.ASSET_PREFIX || "",
basePath: "/smartcontract-ui",
};
9 changes: 6 additions & 3 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ export default class MyDocument extends Document {
return (
<Html lang="en">
<Head>
<base href="https://xtools-at.github.io/smartcontract-ui/" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<link rel="icon" href="/icons/fav.png" type="image/png" />
<link rel="manifest" href="/manifest.json" />
<link
rel="icon"
href="/smartcontract-ui/icons/fav.png"
type="image/png"
/>
<link rel="manifest" href="/smartcontract-ui/manifest.json" />
<script
dangerouslySetInnerHTML={{
__html: `
Expand Down
36 changes: 18 additions & 18 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "Smart Contract UI",
"icons": [
{
"src": "/icons/192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "/icons/512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": "/",
"background_color": "#000",
"theme_color": "#000",
"display": "standalone"
}
"name": "Smart Contract UI",
"icons": [
{
"src": "smartcontract-ui/icons/192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "smartcontract-ui/icons/512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": "/smartcontract-ui",
"background_color": "#000",
"theme_color": "#000",
"display": "standalone"
}

0 comments on commit bbd48fd

Please sign in to comment.