docs: Fix baseURL in code sample

This commit is contained in:
Alex Kozack
2022-09-27 10:41:38 +03:00
committed by GitHub
parent 20f5a08cbd
commit f2d7763fa4

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: {