You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to the netlify.toml, ntl dev starts a static http server, serving files from the publish directory. This more closely mirrors what's happening with the app when it runs on Netlify.
However, right now ntl dev fails and only displays "Not Found" on the page, as we haven't generated and added redirects to the netlify.toml file, as we're doing when actually building. We need to add these redirects in the onPreDev step to allow ntl dev to function properly in this case.
We'd not want this in the plugin though, because real users won't be setting framework = #static and it would stop next dev from working. What we really need is a next serve command, which would allow us to serve the site in an equivalent way to when deployed.
When adding
to the netlify.toml,
ntl dev
starts a static http server, serving files from the publish directory. This more closely mirrors what's happening with the app when it runs on Netlify.However, right now
ntl dev
fails and only displays "Not Found" on the page, as we haven't generated and added redirects to the netlify.toml file, as we're doing when actually building. We need to add these redirects in the onPreDev step to allowntl dev
to function properly in this case.This is also blocking #1553
The text was updated successfully, but these errors were encountered: