mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
creating develpment .env file
This commit is contained in:
parent
73a862c7ec
commit
728c1a503b
11
.env.development
Normal file
11
.env.development
Normal file
@ -0,0 +1,11 @@
|
||||
# Default network, possible values:
|
||||
# "development", "ropsten", "rinkeby", "mainnet", "polygon"
|
||||
GATSBY_NETWORK="polygon"
|
||||
RBAC_URL="http://localhost:3000"
|
||||
|
||||
#GATSBY_INFURA_PROJECT_ID="xxx"
|
||||
#GATSBY_MARKET_FEE_ADDRESS="0xxx"
|
||||
#GATSBY_ANALYTICS_ID="xxx"
|
||||
GATSBY_PORTIS_ID="abc"
|
||||
#GATSBY_ALLOW_FIXED_PRICING="true"
|
||||
#GATSBY_ALLOW_DYNAMIC_PRICING="true"
|
@ -19,7 +19,7 @@ async function run() {
|
||||
const rbacResponse = await rbacRequest(
|
||||
'market',
|
||||
'consume',
|
||||
'eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJDWVdQTTJLY1NKUjJtV0o2ZFBqZTVKVmZ5YTZnZXdhVElVZDBabUoyWndFIn0.eyJleHAiOjE2MjEyNTk5MTcsImlhdCI6MTYyMTI1OTMxNywianRpIjoiOTNmNmVlZGUtZTBkNi00MmY5LWJlNzYtMWZjNTg5ZTQwMmYzIiwiaXNzIjoiaHR0cHM6Ly9rZXljbG9hay1pbnQuZGF0YS1tYXJrZXRwbGFjZS5pby9hdXRoL3JlYWxtcy9tYXJrZXRwbGFjZSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZDM2NDVlZi0zN2Q5LTQzMzQtOWEzYy1jMjczNTRkYmNkMWMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJwb3J0YWwiLCJzZXNzaW9uX3N0YXRlIjoiNzhkNDFkMzAtNTE4Yi00YjZhLWIyMTItMTU1YjFhM2U5ZmE4IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwczovL3BvcnRhb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XJ90aLzE3do9GaHajTERbAiOXDFjUSxk2B4lttZyU9ZIVVNEVCJ6J0NjW_H-y0Jdqk-MqdpIaWW0k3X_i7nlvVh4bt0aFcGpb6LIyphL5Ivl7hbggg3_zetYAsdwJFgL5f7ICG8heX0Q'
|
||||
)
|
||||
console.log('rbacResponse', rbacResponse)
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import fetch from 'cross-fetch'
|
||||
import { rbacUrl, network } from '../../app.config'
|
||||
import appConfig from '../../app.config'
|
||||
|
||||
export async function rbacRequest(
|
||||
component: string,
|
||||
@ -13,8 +13,8 @@ export async function rbacRequest(
|
||||
token
|
||||
}
|
||||
}
|
||||
console.log('rbacUrl', rbacUrl)
|
||||
console.log('network', network)
|
||||
console.log('appConfig', appConfig)
|
||||
console.log('appConfig rbacUrl', appConfig.rbacUrl)
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000', {
|
||||
method: 'POST',
|
||||
|
Loading…
Reference in New Issue
Block a user