-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathjuno.config.mjs
More file actions
34 lines (32 loc) · 1.08 KB
/
juno.config.mjs
File metadata and controls
34 lines (32 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConsoleConfig } from '@junobuild/config';
const delegation = {
// Like identities derived by Internet Identity, those derived with OpenID
// are allowed to interact with any canister on the Internet Computer.
allowedTargets: null,
sessionDuration: BigInt(7 * 24 * 60 * 60 * 1000 * 1000 * 1000) // 7 days in nanoseconds
};
/** @type {import('@junobuild/config').JunoConsoleConfig} */
export default defineConsoleConfig(({ mode }) => ({
id: 'cokmz-oiaaa-aaaal-aby6q-cai',
source: 'build',
...(['development', 'production'].includes(mode) && {
authentication: {
google: {
clientId:
mode === 'production'
? '370155500951-42lqfeh5e71m9766s04hhp1ub4jfc1sd.apps.googleusercontent.com'
: '370155500951-s1hflh8hgj60it9o1teebuk9sqsrobt2.apps.googleusercontent.com',
delegation
},
github: {
clientId: mode === 'production' ? 'Iv23lic7FAv9q1Zc5o47' : 'Iv23libmVo4gQakcmYDv',
delegation
}
}
}),
...(mode === 'production' && {
api: {
url: 'https://api.juno.build' // 'http://localhost:3000' for local dev when API is running
}
})
}));