mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-29 11:20:33 +01:00
Merge pull request #30 from cawa-93/patch-1
docs: Fix `baseURL` in code sample
This commit is contained in:
@@ -28,7 +28,7 @@ import { defineNuxtConfig } from 'nuxt'
|
|||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
modules: ['trpc-nuxt'],
|
modules: ['trpc-nuxt'],
|
||||||
trpc: {
|
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
|
endpoint: '/trpc', // defaults to /trpc
|
||||||
},
|
},
|
||||||
typescript: {
|
typescript: {
|
||||||
|
|||||||
Reference in New Issue
Block a user