Skip to content

Commit 44d7a5f

Browse files
committed
chore: wip
1 parent 44ce074 commit 44d7a5f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
APP_NAME=Stacks
22
APP_ENV=local
33
APP_KEY=
4-
APP_URL=stacks.test
54
APP_DEBUG=true
5+
APP_URL=stacksjs.dev
6+
APP_BUCKET="${APP_URL}-${APP_ENV}"
67

78
DB_CONNECTION=mysql
89
DB_HOST=127.0.0.1

.stacks/core/security/src/crypt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import aes from 'crypto-js/aes'
22
import utf8 from 'crypto-js/enc-utf8'
33

44
function encrypt(message: string): string {
5-
const passphrase = import.meta.env.APP_KEY
5+
const passphrase = process.env.APP_KEY
66
return aes.encrypt(message, passphrase).toString()
77
}
88

99
function decrypt(encrypted: string): string {
10-
const passphrase = import.meta.env.APP_KEY
10+
const passphrase = process.env.APP_KEY
1111
return aes.decrypt(encrypted, passphrase).toString(utf8)
1212
}
1313

.stacks/pages/web/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// // https://github.com/antfu/vite-ssg
1717
// export const createApp = ViteSSG(
1818
// App,
19-
// { routes, base: import.meta.env.APP_URL },
19+
// { routes, base: process.env.APP_URL },
2020
// (ctx) => {
2121
// // install all modules under `modules/`
2222
// Object.values(import.meta.glob<{ install: UserModule }>(frameworkPath('modules/*.ts'), { eager: true }))

0 commit comments

Comments
 (0)