mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix proxy reload issue
This commit is contained in:
parent
621f5fbc89
commit
5306dfff13
@ -1,11 +1,12 @@
|
||||
export default function({ app }) {
|
||||
const backendUrl = process.BACKEND_URL || 'http://localhost:4000'
|
||||
return {
|
||||
httpEndpoint: '/api',
|
||||
httpEndpoint: process.server ? backendUrl : '/api',
|
||||
httpLinkOptions: {
|
||||
credentials: 'same-origin'
|
||||
},
|
||||
credentials: true,
|
||||
tokenName: 'apollo-token',
|
||||
tokenName: 'human-connection-token',
|
||||
persisting: false,
|
||||
websocketsOnly: false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user