What I’m trying to do here is to make nuxt.js or vue.js generate a robots.txt and sitemap.xml that can be pulish the data that inside each file from an external api. Answer On Nuxt, you can use these 2 modules to generate dynamically yours robots.txt and sitemap.xml https://www.npmjs.com/package/@nuxtjs/robots https://www.npmjs.com/package/@nuxtjs/sitemap
Tag: nuxt.js
Nuxt + Vuex + Computed Property
I am currently trying Nuxt.js with Vuex. And I Built a simple form, where I have an email field, a password field and a button. All my state, mutations and actions are working as they should be. But When I created a computed property just to validate the password, I always have an error with an if statement to validate
Nuxt.js fails to start up with auth module
npx create-nuxt-app client and set it up. Run npm run dev and everything works. I start auth setup with npm install @nuxtjs/auth add ‘@nuxtjs/auth’ module in nuxt.config.js add example auth strategy like so Add the example vue store and save it in store/index.js: I run npm run dev, everything compiles and init message shows to go to http://localhost:3000/. Trying to
Nuxt.js with Typeform causes me to force reload page
I am making my own personal webdesign website but I can’t wrap my head around this problem. How it happens: When I navigate from any page to my contact-page (where the Typeform is), the Typeform is simply not showing. When I reload the contact-page itself, it works as it is expected. I am loading the Typeform script this way: contact.vue
How to use Firebase Environment Variables in Nuxt Config
I am trying to separate Firebase Creds from my Nuxt Config file. But it is saying NuxtServerError Your API key is invalid, please check you have copied it correctly. It works fine when I use my creds directly into my nuxt config (without environment variables). I am using @nuxtjs/firebase module and this is my config: firebase ssr/universal auth documentation I
Problem with axios post request from Nuxt.js to external API
I’m trying for many hours now, to get a simple post request to my external api working from Nuxt. It works as expected from a seperate node instance, I can POST and GET as needed with the following: Also with curl: So far so good, now I want to implement this in my Nuxt project. I had to set up
smooth Nuxt/Vue transition on the rest of the page when displaying and hidding a list of elements
I got a list of grid items , and a button switching between “see more” and “see less”. On click on the “see more” button, all the list is displayed. on click on the see less, only 3 items are displayed. we got a nice transition when displaying all the items, but when we hide them, all the elements on
Electron+nuxt+amCharts 4: Unexpected token export
I want to code a desktop application using Electron, nuxt.js and am4charts. When importing the am4charts core with import * as am4core from ‘@amcharts/amcharts4/core’ the app returns an error: My setup: Electron-nuxt boilerplate (https://github.com/michalzaq12/electron-nuxt) “@amcharts/amcharts4”: “^4.7.1” I already tried to transpile amCharts in nuxt.config.js using but without success. How can I fix this issue? Answer I found it could be
Nuxt.js i18n localization doesn’t work in SPA mode
I developed project Nuxt.js in universal mode and localized with i18n work fine, but now I want to change to in spa mode but i18n doesn’t change the language. this is code. file : nuxt.config.js file : middleware/i18n.js store/index.js and licalize file are in locales/fa.json and en.json Answer export default function ({ isHMR, app, store, route, params, req, error, redirect
How to make routes case sensitive in Nuxt
I use nuxt.js + vue.js. I need to create case sensitivity of routers. I found the following property: caseSensitive. I’m trying to put it into nuxt.config but it doesn’t work, the transition is possible by links in upper case. If I directly change the file ~project/.nuxt/router.js, everything works correctly. Help me to figure it out. Answer Your code seems to