GATSBY_API_URL

This commit is contained in:
Karol Wypchlo 2021-04-13 13:09:45 +02:00
parent d98d6f742b
commit 6c17830ade
2 changed files with 3 additions and 2 deletions

View File

@ -73,6 +73,7 @@
"@storybook/react": "^6.2.4",
"babel-loader": "^8.2.2",
"babel-plugin-inline-react-svg": "^2.0.1",
"cross-env": "^7.0.3",
"cypress": "^7.1.0",
"cypress-file-upload": "^5.0.5",
"prettier": "2.2.1"
@ -83,7 +84,7 @@
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"develop": "GATSBY_API_URL=https://siasky.net gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",

View File

@ -57,7 +57,7 @@ const createUploadErrorMessage = (error) => {
return `Critical error, please refresh the application and try again. ${error.message}`;
};
const client = new SkynetClient();
const client = new SkynetClient(process.env.GATSBY_API_URL);
const RegistrationLink = () => (
<Link