Roman Sarvarov

Results 9 comments of Roman Sarvarov

> Having the same issue more or less. Are you using vite, or webpack or what? Webpack. I fix that problem by making dev dependencies available on production in package.json

> So you're saying you have `node_modules` installed in production servers? Or maybe I'm misunderstanding ... I just moved my devDependencies to dependencies in package.json and now its working. That's...

> Hey! Can you update this PR to just add your adapter and not remove the existing one? I think it's fine to have two Go adapters listed 👍 Sure,...

@reinink hey! Can we merge this?

It seems to me that you can simply put the pointer to the response in the context at the middleware, and then you can write something to it in your...

> Did you already try something other than the in memory flash provided? Why are you talking about in memory? It's only an example in README.md :) When you create...

``` package some_flash_provider type contextKey struct{} type someFlashProvider struct{} func (p *someFlashProvider) FlashErrors(ctx context.Context, errors ValidationErrors) error { w := ctx.Value(contextKey).(http.ResponseWriter) cookie := ... http.SetCookie(w, cookie) } func Middleware(next http.Handler)...

I agree with your arguments. I'll think about it.