mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
This misconfiguration doesn't produce a bug without the docker environment. Better to use docker also for development. Let's make it the single source of truth.
14 lines
356 B
JavaScript
14 lines
356 B
JavaScript
export default function({ app }) {
|
|
const backendUrl = process.env.BACKEND_URL || 'http://localhost:4000'
|
|
return {
|
|
httpEndpoint: process.server ? backendUrl : '/api',
|
|
httpLinkOptions: {
|
|
credentials: 'same-origin'
|
|
},
|
|
credentials: true,
|
|
tokenName: 'human-connection-token',
|
|
persisting: false,
|
|
websocketsOnly: false
|
|
}
|
|
}
|