learngerman/patches/0001-REQUIRED-fake-process-...

15 lines
476 B
Diff

--- orig/config.jsx 2021-10-11 20:14:31.701314123 -0300
+++ sources-gen/config.jsx 2021-10-11 20:12:23.251741729 -0300
@@ -1,3 +1,11 @@
+const process = {
+ env: {
+ //REACT_APP_GRAPHQL_BASE_URL: "https://learngerman.dw.com/graphql",
+ REACT_APP_GRAPHQL_BASE_URL: import.meta.env.VITE_GRAPHQL_BASE_URL,
+ REACT_APP_RECAPTCHA_SITEKEY: null,
+ }
+}
+
const config = {
graphQL: {
baseUrl: process.env.REACT_APP_GRAPHQL_BASE_URL || '/graphql',