File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
APP_NAME = Stacks
2
2
APP_ENV = local
3
3
APP_KEY =
4
- APP_URL = stacks.test
5
4
APP_DEBUG = true
5
+ APP_URL = stacksjs.dev
6
+ APP_BUCKET = " ${ APP_URL } -${ APP_ENV } "
6
7
7
8
DB_CONNECTION = mysql
8
9
DB_HOST = 127.0.0.1
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import aes from 'crypto-js/aes'
2
2
import utf8 from 'crypto-js/enc-utf8'
3
3
4
4
function encrypt ( message : string ) : string {
5
- const passphrase = import . meta . env . APP_KEY
5
+ const passphrase = process . env . APP_KEY
6
6
return aes . encrypt ( message , passphrase ) . toString ( )
7
7
}
8
8
9
9
function decrypt ( encrypted : string ) : string {
10
- const passphrase = import . meta . env . APP_KEY
10
+ const passphrase = process . env . APP_KEY
11
11
return aes . decrypt ( encrypted , passphrase ) . toString ( utf8 )
12
12
}
13
13
Original file line number Diff line number Diff line change 16
16
// // https://github.com/antfu/vite-ssg
17
17
// export const createApp = ViteSSG(
18
18
// App,
19
- // { routes, base: import.meta .env.APP_URL },
19
+ // { routes, base: process .env.APP_URL },
20
20
// (ctx) => {
21
21
// // install all modules under `modules/`
22
22
// Object.values(import.meta.glob<{ install: UserModule }>(frameworkPath('modules/*.ts'), { eager: true }))
You can’t perform that action at this time.
0 commit comments