oemer
Explore posts from serversHow to use Nuxt Image ipx with S3 source + Caching?
I am fairly new to this topic and would like to know if you have any good pointers or resources I can check?
I found this Image Optimization reposistory from AWS which is using
sharp
directly, but was hoping IPX could ease the complexity a bit:
https://github.com/aws-samples/image-optimization/tree/4807b9e007cc26ed06baa1febeac2435860330cb1 replies
How too hook into a server response using Nuxt 3?
I need to hook in the response of
/_ipx
. If the image is corrupted /_ipx
will throw an error, because it could not parse the image.
So my goal is, if the optimization with /_ipx
failed, I want to get the original image instead, without any optimization. Only if that fails too, I want to throw an error. Is that possible?
I am using @nuxt/image
1 replies
How to keep order of global middlewares with Nuxt Layers?
It seems that Nuxt Layers won't follow alphabetical order of global middlewares. The layer that extends another layer will always call his middlewares first.
I also found a related stackoverflow question which explains it in more detail:
https://stackoverflow.com/questions/77826748/order-of-middlewares-in-nuxt3-layers
3 replies
TTCTheo's Typesafe Cult
•Created by oemer on 10/25/2023 in #questions
` npx create t3-app@latest` returns `npm ERR! could not determine executable to run`
6 replies
How to fix "[module] is not export by [path]" error during build, when it works on development?
Here is the error I get on
yarn build
I had the same error in development and fixed it with:
This is the index.js
it cannot import:
yarn dev
works, but yarn build
fails. It's a local yarn workspace package .6 replies
What is the replacement for `context.req` in a route middleware in nuxt 3?
I have an
auth
middleware, where I need the req
when it's on the server.
I have this kind of logic:
But in a route middleware you only have to
and from
In Nuxt 2 it worked like this:
2 replies
What is the suggested alternative to layout middlewares in Nuxt 3?
In Nuxt 2 it was possible to define middlewares on layouts, this is no longer supported with Nuxt 3.
I would like to avoid .global middleware, as these would be called on all pages, even if not needed?
6 replies
Do I need to install dependencies of Layers I am extending in a monorepo?
If I don't install the dependencies of Layer I am extending, I get errors that modules can be found. I've tried several things. But the solutions don't work for all dependencies and are inconsistent...
Here is an example:
/base-layer
nuxt.config.ts
package.json
/other-layer
nuxt.config.ts
package.json
`6 replies