Nuxt3 server routes support?
See original GitHub issueHi,
Is-it working in Nuxt3 server side, in a server/api file?
I have the error useSupabaseUser is not defined
. I tried to import them import { useSupabaseUser, useSupabaseClient } from '@nuxtjs/supabase';
but I have the error SyntaxError: The requested module '.../node_modules/@nuxtjs/supabase/dist/module.mjs' does not provide an export named 'useSupabaseClient'
Thanks
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:8
Top Results From Across the Web
server/ · Nuxt Directory Structure
Nuxt automatically scans files inside the ~/server/api , ~/server/routes ... directories to register API and server handlers with HMR support.
Read more >Create API with Nuxt 3 - Medium
Nitro uses unjs/h3 internally to create server and handle routes. In this article we'll create API with the help of Nitro server engine...
Read more >The serverMiddleware Property - Nuxt
Define server-side middleware. ... This allows us to register additional routes (typically /api routes) without need for an external server.
Read more >Accessing Route Parameters in Nuxt 3 - Server Side Up
Accessing route parameters in Nuxt 3 requires 2 steps. Updating your pages naming conventions and using the new useRoute() composable.
Read more >How can I use useFetch() in nuxt3 server routes? - Reddit
I tried to import {useFetch} from "#app in my server/api route but got the following error: Vue app ... need help with multiple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seconded, I find this useful.
/server
than in a vue componentRunning into the same problem …
I’d like to pass the client in a callback function to a crawler that runs in the background asynchronously.