helia-examples icon indicating copy to clipboard operation
helia-examples copied to clipboard

fix: update nextjs example

Open SgtPooki opened this issue 1 year ago • 0 comments

A few fixes here:

  • updates all deps to latest
  • updates the README.md to recommend npm run dev instead of npm start after npm install
  • ~~updates next.config.js to use polyfill recommendation based on https://github.com/ipfs/helia/issues/553#issuecomment-2158940930~~
    • This error cannot be reproduced with latest Helia
  • removes output: 'export' from being used by default because npm run build doesn't build a proper dist folder for use by next start unless output is set to 'standalone' or undefined
  • updates the test script to use next config output of 'export' so tests work properly

SgtPooki avatar Oct 24 '24 18:10 SgtPooki