Questions tagged [nuxt.config.js]
25 questions
0
votes
0 answers
Timeout due to parsing Nuxt Content documents every cold start in Vercel server
I've a web built with Nuxt 2 deployed in Vercel where I'm using the @nuxt/content module for rendering some articles. It's using SSR and target: server, and everytime the server hibernates due to lack of activity, the first load takes +10 seconds or…

Pablo Gutiérrez
- 19
- 4
0
votes
0 answers
How to in nuxt.config.js get the current locale and add it to headers axios
Using NuxtJS, how to output the user's chosen locale in the axios headers? So that when requesting to the backend, the 'Accept-Language' header with the selected locale is transmitted.
nuxt.config.js
...
// Modules:…
0
votes
1 answer
Why Nuxt generate publicPath does not work as expected at first visit?
I'm using Nuxt v2.15.8 to create a static website using nuxt generate command. I expect the requests to the server for fetching the main js and CSS files to be made to / path, as I specified in my nuxt.cofig:
export default {
ssr: false,
target:…

mo3n
- 1,522
- 2
- 10
- 34
0
votes
1 answer
Nuxt Auth Local Token cookie sets logged in status to true
I am currently using Nuxt Auth for my login and session management. Everything is going smoothly. However, I have a problem with the way my set up is handling cookies. I am not sure where I went wrong. Whenever I set the auth._token.local in the…

chemical_elii
- 155
- 1
- 11
0
votes
0 answers
Vue Nuxtjs generates nuxt files with wrong import syntax, how do I fix it?
Im developing a simple project with Vue and Nuxtjs. I'm starting it with yarn dev but when the nuxt files get generated I get a friendly error which says the following:
So I checked the .nuxt directory and the imports for my files had the wrong…

Manuel Duarte
- 644
- 4
- 18
0
votes
1 answer
loading different css base on .env file on nuxt.config.js
I am trying to load a different css base on my .env file because I have two - three types of application that has different designs.
my nuxt.config.js looks something like this
export default {
mode: "spa",
css: process.env.APP_TYPE == 1 ?…

obliviousfella
- 425
- 1
- 8
- 19
0
votes
2 answers
Why can't I create routes with parameters in my serverMiddleware in nuxt?
I'm having a problem configuring the serverMIddleware property, everything works perfectly, but I can't create any other route than the initial route
Mi nuxt.config.js file:
export default {
// Target: https://go.nuxtjs.dev/config-target
…

simon blanco
- 128
- 1
- 3
- 9
0
votes
1 answer
Inject nuxt.config.js configuration into globally registered component using custom built Nuxt module
So this question might be quite complicated, but I'll try to explain it as clear as I can.
I am currently in the process of creating a Nuxt Module. If you're familiar with creating them you know it's possible to configure it in your nuxt.config.js.…

Daniel V.
- 161
- 10
0
votes
1 answer
nuxt.js switch (direction and font) style on changing website language using vue-i18n
I want to change global.scss (/assets/global.scss) into two files, one for 'fa' language and the other for 'en' language on folder assets.
//globalfa.scss
html{
direction:rtl !important
}…

Atousa
- 127
- 3
- 12
0
votes
1 answer
How do we configure nuxtjs with buefy in a custom server with express
I chose buefy as frontend framework to generate my nuxt app, and it does work find, but when I configure the package.json scripts to use node server.js (for a custom express server) to run in dev mode instead of the default nuxt command buefy…

pkabore
- 1
- 2