Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
USERNAME=
PASSWORD=
HEXON_USERNAME=
HEXON_PASSWORD=
HEXON_PORT=
HEXO_BASE=
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.13.0](https://github.com/gethexon/hexon/compare/v0.12.8...v0.13.0) (2025-11-29)


### ⚠ BREAKING CHANGES

* Environment variable names changed to avoid conflicts with system environment variables:
* `USERNAME` → `HEXON_USERNAME`
* `PASSWORD` → `HEXON_PASSWORD`

### Bug Fixes

* conflict with system wild env ([5c81e1b](https://github.com/gethexon/hexon/commit/5c81e1bbe977d6d84562a0e6f3a04e53d8f5b02c))
* date format ([2f80a76](https://github.com/gethexon/hexon/commit/2f80a766646af30710a747c45dc474ace7254b1d))

### [0.12.8](https://github.com/gethexon/hexon/compare/v0.12.7...v0.12.8) (2024-07-11)

### [0.12.7](https://github.com/gethexon/hexon/compare/v0.12.6...v0.12.7) (2024-06-07)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ e.g. modify `git sync` script

## 🖥️ Develop

- Check out `main` branch.
- Check out `develop` branch.
- Run `pnpm dev-init` install dependencies and config hexon.
- Run `pnpm dev` and show your magic!

###### When submitting a PR, remember to set the target branch to `develop`.

## 💩 Have trouble?

- Read FAQs below.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexon",
"version": "0.12.8",
"version": "0.13.0",
"private": true,
"author": "winwin2011 <yjh2011@live.com>",
"license": "GPL-3.0",
Expand Down
231 changes: 167 additions & 64 deletions server-scripts/bin/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions server-shared/src/env-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ export class EnvService {
}

private syncAccount() {
const username = process.env.USERNAME
const password = process.env.PASSWORD
const username = process.env.HEXON_USERNAME
const password = process.env.HEXON_PASSWORD
if (username) {
this._logService.log(`sync account from process.env.USERNAME`)
this._logService.log(`sync account from process.env.HEXON_USERNAME`)
this.account.setUsername(username)
}
if (password) {
this._logService.log(`sync account from process.env.PASSWORD`)
this._logService.log(`sync account from process.env.HEXON_PASSWORD`)
this.account.setPassword(password)
}
}
Expand Down
281 changes: 192 additions & 89 deletions server/dist/index.js

Large diffs are not rendered by default.