-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add adapters for redirects middleware #16
Comments
I ran across this while building a SPA with 11ty and in these cases netlify redirects not working is really annoying. I also created a small reproduction of the issue here: https://github.com/Snapstromegon/netlify-eleventy-dev. This is a small, but annoying bug (and I don't know if Add these two scripts to your package.json: {
"build:watch": "npx @11ty/eleventy --watch",
"dev": "npx netlify-cli dev"
} Add this to your netlify.toml [dev]
framework = "#static"
autoLaunch = false
command = "npm run build:watch" This does not work for stuff that requires the use of the dev server like auto reloading, but it solves the base issue as a workaround. Btw: The redirect parser is now located here: https://github.com/netlify/build/tree/main/packages/redirect-parser |
This is an incomplete implementation for Add adapters for redirects middleware 11ty#16 Signed-off-by: Raphael Höser <[email protected]>
Personally I’d get a lot of use out of having netlify redirects available in dev mode as an adapter
https://github.com/netlify/netlify-redirect-parser
The text was updated successfully, but these errors were encountered: