Skip to content

Commit

Permalink
Update starter project for dfx 0.18.x (#76)
Browse files Browse the repository at this point in the history
* Bump Motoko base library to 0.11.0

* Update environment variables for dfx 0.18
  • Loading branch information
rvanasa committed Mar 8, 2024
1 parent 315166b commit 0a009ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mops.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[dependencies]
base = "0.9.3"
base = "0.11.0"
sequence = "https://github.com/matthewhammer/motoko-sequence#366c419"
2 changes: 1 addition & 1 deletion src/services/userService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface UserDetail {

export const USER_STORE = makeObservable<User | null | undefined>();

const localIdentityProvider = `http://${process.env.INTERNET_IDENTITY_CANISTER_ID}.localhost:4943`;
const localIdentityProvider = `http://${process.env.CANISTER_ID_INTERNET_IDENTITY}.localhost:4943`;

const clientPromise = window.indexedDB
? AuthClient.create({
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineConfig({
// Expose canister IDs provided by `dfx deploy`
...Object.fromEntries(
Object.entries(canisterIds).map(([name, ids]: any) => [
`process.env.${name.toUpperCase()}_CANISTER_ID`,
`process.env.CANISTER_ID_${name.toUpperCase()}`,
JSON.stringify(ids[network] || ids[localNetwork]),
]),
),
Expand Down

0 comments on commit 0a009ae

Please sign in to comment.