HomePhabricator

[e.cash] Fix v2 hot reload

Description

[e.cash] Fix v2 hot reload

Summary:
Turns out we do need slightly different CSP values for dev mode.
The next.js hot reload functionality needs the looser 'unsafe-eval' to work, but it is not recomended to have that in prod
Adding a conditional csp value to the next.config

Test Plan:
try npm run dev on master and make some changes. It shouldnt hot reload and there will be a console error
then try on this branch and npm run dev should work as expected

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D18174

Details

Provenance
johnkuneyAuthored on May 30 2025, 15:32
johnkuneyPushed on May 30 2025, 19:44
Reviewer
Restricted Project
Differential Revision
Restricted Differential Revision
Parents
rABC67e279b7e82c: [Cashtab] Improve modal for FIRMA redeems
Branches
Unknown
Tags
Unknown

Event Timeline