mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-21 07:21:43 +01:00
feat: use globalThis.$fetch to call API handler directly on server-side
This commit is contained in:
@@ -16,7 +16,7 @@ export default defineNuxtModule<ModuleOptions>({
|
||||
configKey: 'trpc',
|
||||
},
|
||||
defaults: {
|
||||
baseURL: 'http://localhost:3000',
|
||||
baseURL: '',
|
||||
endpoint: '/trpc',
|
||||
},
|
||||
async setup(options, nuxt) {
|
||||
|
||||
Reference in New Issue
Block a user