Nuxt3 + Laravel sanctum
How can I get data from api when backend is secured by laravel sanctum? when I use useFetch I do not get any data. const {data: cat} = await useFetch('/api/categories') Laravel docs told to use axios but in nuxt3 axios…
How can I get data from api when backend is secured by laravel sanctum? when I use useFetch I do not get any data. const {data: cat} = await useFetch('/api/categories') Laravel docs told to use axios but in nuxt3 axios…
I'm trying to get data from local data with pinia and nuxt, and it can't seam to get the end point, what's wrong with my code? I'm new to Vue, Nuxt and Pinia, I have been following some tutorial, but…
useState() in a Nuxt3 has a power of sending data to client after fetching it on server side (except rendered HTML file, it sends JSON file with data saved using useState()). Like I mentioned in the title, I want to…
So i'm trying to use Supabase + typescript but when i want to use insert(), update(), upsert() and other functions im getting an error when i want to declare the object that i want to declare "Type <Restaurant> does not…
So I am making a web app with nuxt 3 and laravel, and I cant seem to get the SPA authentication to work. So I am for now generating a usertoken and saving it in the cookies, so my user…
In my project under plugins dir I have a single plugins called firebase.ts and it's look like this import { defineNuxtPlugin } from "#app"; import { firebaseConfig } from "@/firebaseConfig"; import { initializeApp } from "firebase/app"; import { getAuth }…
I have a Nuxt.js 3 (rc4) application running well on the dev server, but the production build crashes on start. I'm using Mongoose to connect to a Mongo DB and the issue seems to be there, particularly with the whatwg-url…
Environment Sanctum Version: v2.15.1 Fortify Version: v1.13.0 Laravel Version: v9.17.0 PHP Version: PHP 8.1.6 Database Driver & Version: Based on Laravel Sail (docker): image: 'mysql:8.0' Description: I am trying to get the login flow of my web app working. The…
I try without success to apply a prerendering (or a SSG) to my Vue3 application to make it more SEO friendly. I found the vue-cli-plugin-prerender-spa, and when I try it with the command line: vue add prerender-spa I have the…
I build my Nuxt3 Applcation with this command which generates everything in a Folder .output: npm run build This is the DockerFile that I'm using to build the docker file: FROM node:17-alpine3.14 ADD .output /webapp/.output EXPOSE 3000 WORKDIR /webapp/.output ENTRYPOINT…