-
dfx 0.10.0
-
node v18.0.2
-
src/frontend/constants.ts
file with the following entries:- BACKEND_URL
- provide the URL for both production and development backend
- REDIRECT_URL
- provide the URL to redirect users to log in to discord
- make sure you have two different
client_id
s andredirect_uri
s for production and development if you use different discord bots
- make sure you have two different
- provide the URL to redirect users to log in to discord
- BACKEND_URL
- run
yarn install
to install all dependencies - to start a local version of the replica and spin up the development server, run
yarn dev
.
- run
dfx deploy --network ic
to deploy the frontend and backend canisters to the mainnet⚠️ when deploying to mainnet: make sure you delete thecanister_ids.json
file before deploying to mainnet!