Open weboko opened 3 months ago
Currently flush-notes is not working due to problem with NextJS paths.
flush-notes
NextJS
Update deploy step so that it copies out directory of flush-notes with _next, currently it doesn't in https://github.com/waku-org/lab.waku.org/blob/fcbf3539e0f41208b1ee9ebe5bcc70f3a2d12493/ci/Jenkinsfile#L86
out
_next
Then we should fix paths in the output so that it loads js files and others from subfolder in lab.waku.org/flush-notes/_next. I couldn't find a way to do this through next.config.js so we should use following: https://github.com/vercel/next.js/discussions/45422#discussioncomment-7593569
js
lab.waku.org/flush-notes/_next
next.config.js
Problem
Currently
flush-notes
is not working due to problem withNextJS
paths.Solution
Update deploy step so that it copies
out
directory offlush-notes
with_next
, currently it doesn't in https://github.com/waku-org/lab.waku.org/blob/fcbf3539e0f41208b1ee9ebe5bcc70f3a2d12493/ci/Jenkinsfile#L86Then we should fix paths in the output so that it loads
js
files and others from subfolder inlab.waku.org/flush-notes/_next
. I couldn't find a way to do this throughnext.config.js
so we should use following: https://github.com/vercel/next.js/discussions/45422#discussioncomment-7593569Notes