Merge pull request #30 from cawa-93/patch-1

docs: Fix `baseURL` in code sample
This commit is contained in:
Robert Soriano
2022-09-27 10:18:15 -07:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: ['trpc-nuxt'],
trpc: {
baseURL: 'http://localhost:3000', // defaults to http://localhost:3000
baseURL: '', // Set empty string (default) to make requests by relative address
endpoint: '/trpc', // defaults to /trpc
},
typescript: {