·
44 commits
to main
since this release
Minor Changes
-
✨ Added rewrite() to the RequestEvent object. It works like redirect but does not change the URL, (by @omerman in #7562)
think of it as an internal redirect.Example usage:
export const onRequest: RequestHandler = async ({ url, rewrite }) => { if (url.pathname.includes('/articles/the-best-article-in-the-world')) { const artistId = db.getArticleByName('the-best-article-in-the-world'); // Url will remain /articles/the-best-article-in-the-world, but under the hood, // will render /articles/${artistId} throw rewrite(`/articles/${artistId}`); } };
Patch Changes
-
🐞🩹 Change Content-Type header in qwik requests to respect RFC 7231 (by @joaomaridalho in #7690)
-
🐞🩹 link/useNavigate with query params don't override loader/middleware redirect with query params anymore. (by @maiieul in #7733)
-
🐞🩹 allow cross-protocol requests from the same domain (by @gioboa in #7693)
-
🛠 update devDependencies and configurations (by @JerryWu1234 in #7695)
-
🐞🩹 Duplicate ServerError class during dev mode (by @wmertens in #7724)