diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-05-17 23:43:30 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-05-17 23:43:30 +0200 |
| commit | d2cd7f1b4c318ac8587ab3dc1dec4a44b6d592fe (patch) | |
| tree | 0b8c84560f661da92137d4f4fa59ed493ce2feab /src/lib/config | |
| parent | 0472e8073b9df492596e550fc79c42ca93ba14c0 (diff) | |
Start migration to supabase
Diffstat (limited to 'src/lib/config')
| -rw-r--r-- | src/lib/config/apollo.ts | 3 | ||||
| -rw-r--r-- | src/lib/config/config.ts | 1 | ||||
| -rw-r--r-- | src/lib/config/env.dist | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/config/apollo.ts b/src/lib/config/apollo.ts index 826fd28..a8b27ef 100644 --- a/src/lib/config/apollo.ts +++ b/src/lib/config/apollo.ts @@ -8,6 +8,9 @@ export const client = new ApolloClient({ cache, link: new HttpLink({ uri: apolloConfig.uri, + headers: { + apiKey: apolloConfig.key + }, fetch }), ...apolloConfig diff --git a/src/lib/config/config.ts b/src/lib/config/config.ts index efb7dea..2bf9bc1 100644 --- a/src/lib/config/config.ts +++ b/src/lib/config/config.ts @@ -10,6 +10,7 @@ const internals = { export const apollo = { uri: import.meta.env.VITE_APOLLO_SERVER, + key: import.meta.env.VITE_APOLLO_KEY, name: 'forum', version: internals.version }; diff --git a/src/lib/config/env.dist b/src/lib/config/env.dist index 1f3ff0c..2d95266 100644 --- a/src/lib/config/env.dist +++ b/src/lib/config/env.dist @@ -1 +1,2 @@ VITE_APOLLO_SERVER=http://location_of_apollo_server +VITE_APOLLO_KEY="" |