Skip to content

Commit

Permalink
chore(web): try to fix requests on client when navigating
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont authored Dec 24, 2024
1 parent 03bf4ef commit f3ad8fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/layers/gql/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ export default defineNuxtConfig({
? `${https ? 'https' : 'http'}://${config.SITE_BASE_URL}/api/query`
: 'http://api-gql:3009/query',
client: path.join(currentDir, 'urql.ts'),
ssr: {
endpoint: process.env.NODE_ENV !== 'production'
? `${https ? 'https' : 'http'}://${config.SITE_BASE_URL}/api/query`
: 'http://api-gql:3009/query',
key: 'urql-ssr'
},
},
})

0 comments on commit f3ad8fd

Please sign in to comment.