jordan
Explore posts from serversCDCloudflare Developers
•Created by jordan on 8/7/2024 in #pages-help
Remix and Vite - 2 error(s) and 0 warning(s) when compiling Worker.
@Dan 👍 and anyone else who might get stuck... I got help on the Remix discord and my issue was I am importing from remix-node instead of cloudflare.
I was doing auth and had:
import { createCookieSessionStorage } from "@remix-run/node";
Instead of:
import { createCookieSessionStorage } from "@remix-run/cloudflare";
Have a look through your code and make sure you import from @remix-run/cloudflare
for anything node related.5 replies
CDCloudflare Developers
•Created by jordan on 8/7/2024 in #pages-help
Remix and Vite - 2 error(s) and 0 warning(s) when compiling Worker.
I had quite a few as well, then I added the wrangler.toml part but these two won't go away.
I've always tried to change the compatibility_date to see if that would make a different but it did not :/
I don't think I've done anything too out of the ordinary either. I've followed the remix-auth docs and added prisma and tailwind, so I'm quite confused by the issues I have.
I noticed not everything was up to date, so I've updated all my dependencies but still get the same error.
I ran npm ls crypto and npm ls stream and have no dependencies relying on this, so I'm not sure what the next steps are 😅
5 replies
API Development Advice
The API cost, it gives you 100 calls per day for free, but then goes up quite a lot for more. My friend is happy to pay but think it's too much for the next level.
From a development point, I think I could build it but just hoping to get a bit of advice for building it. Basically, I think it would be a db that stores the information, simple table of dates and prices. Then when I use the site, it gets the date and price I select.
I'm unsure if this is the best way, and how cost efficient it would if it was a few hundred calls to a couple thousand calls per day and if caching would help with that as well.
11 replies
Strapi Heroku to Railway
I think this is what I was doing wrong, so I've managed to get the database setup and done a pg_dump and pg_restore, but have another issue,:
However, this error makes sense as I wouldn't have this user on this database.
Anyway, I've ran the deployment without adding the user and it works, so I think I'm all good and hope this helps other people.
6 replies