[Bug]: Could not find source file for page /api/ when index file for the folder #2100
Closed
3 tasks
Labels
type: bug
code to address defects in shipped code
Summary
When deploying my project, I get "Could not find source file for pages" errors for my routes. I believe this is because my routes are defined as index files in the named folder within the api folder (i.e.
/api/analyze/index.api.ts
).The plugin is looking for the file at
/api/analyze.api.ts
and doesn't seem to be considering that it could be an index file within a folder of that route's name.Steps to reproduce
A link to a reproduction repository
No response
Next Runtime version
4.36.1
Is your issue related to the
app
directory (beta)?app
directoryMore information about your build
netlify.toml
)What OS are you using?
None
Your netlify.toml file
No response
Your public/_redirects file
No response
Your
next.config.js
file`next.config.js`
Builds logs (or link to your logs)
Build logs
https://app.netlify.com/sites/should-i-refinance-yet/deploys/645c0f59533f0b0007a672fe
Function logs
No response
.next JSON files
No response
The text was updated successfully, but these errors were encountered: