changes to pass api_root when client side action

This commit is contained in:
2021-07-21 15:20:06 +01:00
parent ea56f9e228
commit 50998612f1
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -23,6 +23,11 @@ class MyDocument extends Document {
<Html lang="en">
<Head />
<body>
{!process.browser && (
<script>
window.apiRoot = `{process.env.API_ROOT}`
</script>
)}
<SkipLink />
<Main />
<NextScript />