Lannister
Undesired Route Path Casing Override in i18n module
Reproduction
Navigate to the login screen, the original route path is
/auth/signin
, not /Auth/Signin
This discrepancy is due to the i18n
route override process, which takes into account the casing of the actual files or folders in the pages directory. This behavior contrasts with Nuxt and its router, which normalize all paths to lowercase.
Live Version
Github Repo
It would be preferable for this behavior to be configurable via a flag, rather than needing the creation of a plugin or middleware to address this undesired outcome.7 replies
Layers under ~/layers not auto-registered in v3.12.1
Nuxt question: Layers under
~/layers
not auto-registered in v3.12.1
I've created a small repo with a live version to reproduce it.
skriptjobs-app
is extending 3 layers in nuxt.config.ts
This way, everything works, no issues.
Now, I want the layers in ./layers/**
to be auto-registered
But its not auto-registering anything, if I dont manually specify the layers manually.
What am I doing wrong? I'm running v3.12.1
https://nuxt-layers-registration.vercel.app/
repo:
https://github.com/santiagoaloi/nuxt-layers-registration2 replies
Uncaught TypeError: Cannot read properties of undefined (reading 'baseURL')
Only when pre-rendering my homepage in production, I see this error in the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'baseURL')
I disabled code minification to see the clear code in the production build:
3 replies
Best Practice for Logging Raw Headers on the First Request in Nuxt
I'm working on a Nuxt project and I need to log the raw headers, but I only want to do this on the first request.
Currently, I have the following implementation:
However, this logs the raw headers for every request. How can I modify this code to only log the raw headers for the first request? Any insights or best practices on achieving this would be greatly appreciated. Thank you! 🙌
1 replies