-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Describe the bug A clear and concise description of what the bug is.
Although static assets are served by netlify serve
, no functions seem to be working and the index of the site (http://localhost:8888/
) returns "404 Not Found".
To Reproduce Steps to reproduce the behavior:
- Generate a new site
npx create-remix@latest --template netlify/remix-template
- (choosing functions, rather than edge)
- Test the site working
- Translocate site as a workspace within a pnpm monorepo:
a. add missing dependencies (pnpm complains about react and react-dom missing)
b. I had an issue with netlify-cli trying to run an unrelated workspace package (which also happens to have a netlify.toml file): addedbuild.base: "packages/remix-netlify"
c.tsconfigPaths
was reporting errors in unrelated packages (addedroot
parameter)
d. Deletepackage-lock.json
andnode_modules
e. Reinstall repo deps withpnpm i
- Test the site within monorepo working correctly with
remix vite:dev
netlify serve
fails with 404 error at root of site and.netlify/functions-serve
is missing (compared with original site)- Static client assets are served correctly (
favicon.ico
and CSS/JS under/assets/...
)
Expected behavior A clear and concise description of what you expected to happen.
The site should work within a monorepo, or would expect some simple configuration to make it work.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: MacOS
- Browser: n/a
- Version: @netlify/remix-adapter: 2.5.1
Smartphone (please complete the following information):
- Device: n/a
- OS: n/a
- Browser n/a
- Version n/a
Additional context Add any other context about the problem here.
Can potentially create a new monorepo for testing if not easily reproducible.
It seems like part of the Netlify code is still mis-identifying a path, but it's not clear what or where.