However when I deploy it, it seems to be read as an empty file with 0bytes?
Also accessing the route doesn’t work on netlify, however it does work locally while using netlify dev
Update: As an update to this problem, I realized all of my bad routes so
misite/badroute returns a 502 timeout instead of a 404 error. However this doesn’t happen locally or netlify dev, only on the netlify site
Thank you clarnx. I’ve attempted to put that exact piece of code under.
src/pages/api/test.ts
However when I tried to call the route /api/test on my site, it simply times out.
I currently don’t have a netlify toml yet, the function would also work as a netlify lambda function, I’m just trying to figure out why my site doesn’t run nextjs api functions
@moemakura23, glad to know you were able to figure out what was causing the problem.
Regarding the imports you can still use the option above.
Before you can use the option above you need to configure your bundler settings to enable you to use named imports.
Kindly read the official MUI documentation at the link below on how to configure your bundler settings to enable you to use the option above.
For more information about using MUI icons during development, also visit the link below.