vegaprotocol / frontend-monorepo

Toolkit for building apps that interact with Vega
https://vega.xyz
MIT License
21 stars 14 forks source link

[trading] Prefix asset path with . (for ipfs) #1614

Closed edd closed 1 year ago

edd commented 1 year ago

Configure assetPrefix for trading so that IPFS works with subfolder or subdomains

next.js builds static pages, and those static pages reference static assets as /_next/..., which works fine if the site is served from a domain root (e.g. console.fairground.wtf/, made-up-url.ipfs.io) but breaks down on IPFS gateways that are still configured to use subfolders (e.g. ipfs.io/ipfs/made-up-url). Luckily we can fix this by using assetPrefix to turn /_next/ in to ./_next/, which works in both cases.

Closes #1613

netlify[bot] commented 1 year ago

Deploy Preview for vega-trading-app failed.

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/vega-trading-app/deploys/633c8cabbad7030009def459
netlify[bot] commented 1 year ago

Deploy Preview for vega-ui-toolkit ready!

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/vega-ui-toolkit/deploys/633c8cab8c13c70008031fb6
Deploy Preview https://deploy-preview-1614--vega-ui-toolkit.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] commented 1 year ago

Deploy Preview for vega-explorer-testnet ready!

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/vega-explorer-testnet/deploys/633c8cab5d75170009eb2f93
Deploy Preview https://deploy-preview-1614--vega-explorer-testnet.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] commented 1 year ago

Deploy Preview for console-lite failed.

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/console-lite/deploys/633c8cabbd32590008713377
netlify[bot] commented 1 year ago

Deploy Preview for token-dapp-dev ready!

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/token-dapp-dev/deploys/633c8cab2e4edf0008c03cdd
Deploy Preview https://deploy-preview-1614--token-dapp-dev.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] commented 1 year ago

Deploy Preview for liquidity-provision-dashboard failed.

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/liquidity-provision-dashboard/deploys/633c8cab3f0b2c00083e3967
edd commented 1 year ago

Bah - branched from main not develop. Fixing.

netlify[bot] commented 1 year ago

Deploy Preview for vega-tools canceled.

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/vega-tools/deploys/633c8cab981d1a000801bc78
netlify[bot] commented 1 year ago

Deploy Preview for market-depth ready!

Name Link
Latest commit dc852cd520740fd2bc6c5c85cdf6111a4abf78d3
Latest deploy log https://app.netlify.com/sites/market-depth/deploys/633c8cab19f32c00080fbc06
Deploy Preview https://deploy-preview-1614--market-depth.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

edd commented 1 year ago

See #1615