File tree 6 files changed +31
-14
lines changed
6 files changed +31
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Use the testnet in development
2
- # ALEPH_API_URL=https://api.twentysix.testnet.network
2
+ # APP. ALEPH_API_URL=https://api.twentysix.testnet.network
3
3
4
4
# WalletConnect
5
- WALLET_CONNECT_PROJECT_ID =
5
+ APP. WALLET_CONNECT_PROJECT_ID=
6
6
7
7
# APIs
8
- LTAI_SUBSCRIPTIONS_API_URL = http://localhost:8000
9
- LTAI_AGENTS_API_URL = http://localhost:8001
8
+ APP. LTAI_SUBSCRIPTIONS_API_URL= http://localhost:8000
9
+ APP. LTAI_AGENTS_API_URL= http://localhost:8001
10
10
11
11
# RPCs
12
- SOLANA_RPC =
12
+ APP. SOLANA_RPC=
13
13
14
14
# Blockchain addresses (change in development)
15
- # LTAI_BASE_ADDRESS=0x92e1d72210429Ce7eE8a0d64D526D4b9752801FF
16
- # LTAI_SOLANA_ADDRESS=5ooRTqmvm95bHwp4HMo3iszCwsEseY5hksfSa9EDVpBY
17
- # LTAI_PUBLISHER_ADDRESS=0xae92Dc50115dbBb1CF0BA848e83842daf00CE129
18
- # WAGMI_BASE_ID=84532
15
+ # APP. LTAI_BASE_ADDRESS=0x92e1d72210429Ce7eE8a0d64D526D4b9752801FF
16
+ # APP. LTAI_SOLANA_ADDRESS=5ooRTqmvm95bHwp4HMo3iszCwsEseY5hksfSa9EDVpBY
17
+ # APP. LTAI_PUBLISHER_ADDRESS=0xae92Dc50115dbBb1CF0BA848e83842daf00CE129
18
+ # APP. WAGMI_BASE_ID=84532
Original file line number Diff line number Diff line change 81
81
"tailwindcss" : " ^3.4.14" ,
82
82
"typescript" : " ^5.6.3" ,
83
83
"vite-plugin-checker" : " ^0.7.2" ,
84
+ "vite-plugin-environment" : " ^1.1.3" ,
84
85
"vite-plugin-node-polyfills" : " ^0.22.0" ,
85
86
"vue-eslint-parser" : " ^9.4.3" ,
86
87
"vue-tsc" : " ^2.0.29"
Original file line number Diff line number Diff line change 10
10
11
11
const { configure } = require ( 'quasar/wrappers' ) ;
12
12
const { nodePolyfills } = require ( 'vite-plugin-node-polyfills' ) ;
13
+ const EnvironmentPlugin = require ( 'vite-plugin-environment' ) . default ;
13
14
14
15
module . exports = configure ( function ( ctx ) {
15
16
return {
@@ -70,7 +71,14 @@ module.exports = configure(function (ctx) {
70
71
if ( viteConf . plugins === undefined ) {
71
72
viteConf . plugins = [ ] ;
72
73
}
73
- viteConf . plugins = [ ...viteConf . plugins , nodePolyfills ( ) ] ;
74
+ viteConf . plugins = [
75
+ ...viteConf . plugins ,
76
+ nodePolyfills ( ) ,
77
+ EnvironmentPlugin ( 'all' , {
78
+ prefix : 'APP.' ,
79
+ defineOn : 'import.meta.env' ,
80
+ } ) ,
81
+ ] ;
74
82
if ( ctx . dev ) {
75
83
viteConf . define [ 'process.browser' ] = true ;
76
84
}
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ import dayjs from 'dayjs';
2
2
import localizedFormat from 'dayjs/plugin/localizedFormat' ;
3
3
import relativeTime from 'dayjs/plugin/relativeTime' ;
4
4
import * as pdfjs from 'pdfjs-dist' ;
5
- import { boot } from 'quasar/wrappers' ;
6
- // @ts -expect-error
7
5
import workerSrc from 'pdfjs-dist/build/pdf.worker?worker&url' ;
6
+ import { boot } from 'quasar/wrappers' ;
8
7
9
8
export default boot ( ( ) => {
10
9
dayjs . extend ( localizedFormat ) ;
Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ const envSchema = z.object({
13
13
WAGMI_BASE_ID : z . union ( [ z . literal ( base . id ) , z . literal ( baseSepolia . id ) ] ) . default ( base . id ) ,
14
14
} ) ;
15
15
16
- const env = envSchema . parse ( process . env ) ;
16
+ const env = envSchema . parse (
17
+ Object . keys ( import . meta. env ) . reduce (
18
+ ( acc , key ) => ( {
19
+ ...acc ,
20
+ ...{ [ key . replace ( 'APP.' , '' ) ] : import . meta. env [ key ] } ,
21
+ } ) ,
22
+ { } ,
23
+ ) ,
24
+ ) ;
17
25
18
26
export default env ;
Original file line number Diff line number Diff line change 4
4
"allowJs" : false ,
5
5
"baseUrl" : " ." ,
6
6
"target" : " ESNext" ,
7
- "skipLibCheck" : true
7
+ "skipLibCheck" : true ,
8
+ "types" : [" node" , " vite/client" ]
8
9
},
9
10
"exclude" : [
10
11
" ./dist" ,
You can’t perform that action at this time.
0 commit comments