Next.js Discord

Discord Forum

Connecting to PlanetScale without Prisma

Unanswered
Cinnamon posted this in #help-forum
Open in Discord
CinnamonOP
Hi, I'm trying to create a CRUD app with Next.js and PlanetScale. I've installed mysql2 made my API, created a fetch, as well as put my connection string in my .env file. Despite that, I'm getting a 404 from every call. Any advice for trouble shooting or maybe something I'm missing? You can check the project here:

https://github.com/Nealium104/npcExchange

Client side component is PostCollection.tsx. Fetch is DBFetch in database/DBetch

0 Replies