Skip to content

Commit 935e98b

Browse files
committed
deploy
1 parent 7166fe1 commit 935e98b

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Test and Deploy
22
on:
33
push:
44
branches:
5-
- goshujin
5+
- main
6+
workflow_dispatch:
67

78
jobs:
89
deploy:

frontend/components/PasteSettingPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function PanelSettingsPanel({ setting, onSettingChange, ...rest }: PasteS
7474
value={setting.uploadKind}
7575
onValueChange={(v) => onSettingChange({ ...setting, uploadKind: v as UploadKind })}
7676
>
77-
<Radio value="short" description={`Example: ${BaseUrl}/BxWH`} classNames={radioClassNames}>
77+
<Radio value="short" description={`Example: ${BaseUrl}/BxW`} classNames={radioClassNames}>
7878
Generate a short random URL
7979
</Radio>
8080
<Radio

shared/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const CHAR_GEN = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678"
22
export const NAME_REGEX = /^[a-zA-Z0-9+_\-[\]*$@,;]{3,}$/
3-
export const PASTE_NAME_LEN = 4
3+
export const PASTE_NAME_LEN = 3
44
export const PRIVATE_PASTE_NAME_LEN = 24
55
export const DEFAULT_PASSWD_LEN = 24
66
export const MAX_PASSWD_LEN = 128

wrangler.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,32 @@ crons = ["0 0 * * *"]
2424

2525
[[routes]]
2626
# Refer to https://developers.cloudflare.com/workers/wrangler/configuration/#routes
27-
pattern = "shz.al"
27+
pattern = "p.apeiria.net"
2828
custom_domain = true
2929

3030
[[kv_namespaces]]
3131
binding = "PB" # do not touch this
32-
id = "435f8959b9de485ea48751ba557d90f5" # id of your KV namespace
32+
id = "e485dfc7728c4c06860741da8a0dfb32" # id of your KV namespace
3333

3434
[[r2_buckets]]
3535
binding = "R2" # do not touch this
3636
bucket_name = "pb-shz-al" # bucket name of your R2 bucket
3737

3838
[vars]
3939
# must be consistent with your routes
40-
DEPLOY_URL = "https://shz.al"
40+
BASE_URL = "https://p.apeiria.net"
4141

4242
# url to repo, displayed in the index page
43-
REPO = "https://github.com/SharzyL/pastebin-worker"
43+
REPO = "https://github.com/MSKNET/pastebin-worker"
4444

4545
# the page title displayed in index page
4646
INDEX_PAGE_TITLE = "Pastebin Worker"
4747

4848
# the name displayed in TOS
49-
TOS_MAINTAINER = "Sharzy"
49+
TOS_MAINTAINER = "Misaka13514"
5050

5151
# the email displayed in TOS
52-
TOS_MAIL = "pb@shz.al"
52+
TOS_MAIL = "pb@apeiria.net"
5353

5454
# Cache-Control max-age for static pages
5555
CACHE_STATIC_PAGE_AGE = 7200

0 commit comments

Comments
 (0)