#Remix + Payload
1 messages · Page 1 of 1 (latest)
Nice! Had some Monorepo/webpack issues with the official example, this could be the ticket!
Noticed an issue in https://github.com/MoSattler/repay/blob/main/remix.env.d.ts, it should be import type { User } from "app/payload-types"; right?
@violet jacinth good catch, fixed it here: https://github.com/MoSattler/repay/commit/c7f9b752a39bd724f0fb211406fa4d6e7991e6e1
If you already are working on a template, you can add these fixes like this:
curl https://github.com/MoSattler/repay/commit/c7f9b752a39bd724f0fb211406fa4d6e7991e6e1.patch | git apply -v --index
if you have any other issue, feel free to DM me
Great thanks
mmm, also why is it calling root loader every navigation? wait that's my fault.
wow, this looks super slow. are those pure remix routes, or is payload somehow slowing it down?
Simply navigating between pages.
We simply copied over the same routes and payload setup from the monorepo example, but the difference is drastic:
If you have time to take a look and see if you can spot anything obvious:
https://github.com/manawiki/core based on https://github.com/payloadcms/remix-server
https://github.com/manawiki/single based on this template
dev or production build? can you open an issue in the repo? I will take a closer look later today
This was dev, will check tomorrow on production and post an issue!
@devout ridge check this out: https://github.com/MoSattler/repay/commit/a99f972c352372bfc54c029f63b91d343dbc052a
Once you comment out purgeRequireCache , your perf problems will disappear.
Ahhh
I recall reading about that with the new remix dev server but didn't connect the dots.
Gonna get out of bed for this!
Looking good!
Does that mean we don't really need the ternary either?
oh yeah, much, much better!
mmm, nodemon isn't restarting the server on file changes without purge.
Looks like we can keep purgeRequireCache, but get similar performance via using swc in tsconfig.json
@devout ridge merged!
Really cool payload is on my radar too. Has anonye tried a single payload install multiple project content serving concept?
So you could out payload to host content for priject x y z and load it into remix using an identifier
Repay has been upgraded to Remix v2 dev server!
Also a good opportunity to mention that my team over at mana.wiki has adopted the template from the gracious @dull sluice!
https://github.com/manawiki/repay