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
Astro v5.1.1
Node v20.18.0
System macOS (x64)
Package Manager yarn
Output server
Adapter @astrojs/vercel
Integrations astro-favicons
@storyblok/astro
astro-robots
@astrojs/sitemap
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The issue occurs when astro-favicons are a development dependency, but as a dependency, everything works fine.
What causes this?
What's the expected result?
The middleware of astro-favicons should work fine regardless of whether it is a development dependency or a dependency Because in "astro": "^4.16.14", complex projects (useful to middleware, restApi, storyblok, etc.) will work fine
Hello @JakiChen. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro will be closed if they have no activity within 3 days.
Also your docs have errors I believe (no context in the return statement before locals):
export function onRequest (context, next) {
// intercept data from a request
// optionally, modify the properties in `locals`
context.locals.user.name = "John Wick";
context.locals.welcomeTitle = () => {
return "Welcome back " + locals.user.name;
};
// return a Response or the result of calling `next()`
return next();
};
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The issue occurs when
astro-favicons
are a development dependency, but as a dependency, everything works fine.What causes this?
What's the expected result?
The middleware of
astro-favicons
should work fine regardless of whether it is a development dependency or a dependency Because in "astro": "^4.16.14", complex projects (useful to middleware, restApi, storyblok, etc.) will work fineLink to Minimal Reproducible Example
See https://github.com/jakichen/boilerplates-vercel
Participation
The text was updated successfully, but these errors were encountered: