[Gatsby Themes]Functions (/api) not available? #33884
-
Hi! I published my Gatsby Theme as a private NPM package, and did install this on my website. But when running the website, I don't see any of these functions live on my website. When visiting the development 404 page, I do see: Functions (0) How can I make sure that the functions inside [themename]/src//api folder are also available for sites where this Gatsby Theme is installed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ahw, my plugin name changed to |
Beta Was this translation helpful? Give feedback.
-
Don't know why this happens, but I am asking a question and after a few hours I figured it out.. Sorry! Folder structure needed to be |
Beta Was this translation helpful? Give feedback.
Don't know why this happens, but I am asking a question and after a few hours I figured it out.. Sorry!
Folder structure needed to be
src/api/@name/pluginname