Skip to content

Commit 4cbe729

Browse files
committed
chore: update env config
1 parent 526797c commit 4cbe729

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.env

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,8 @@ DB_DATABASE=reactpress
77

88

99
# Client Config
10-
CLIENT_PORT=3001
1110
CLIENT_SITE_URL=http://localhost:3001
12-
CLIENT_ASSET_PREFIX=/
1311

1412
# Server Config
15-
SERVER_PORT=3002
1613
SERVER_API_URL=http://localhost:3002/api
17-
SERVER_PUBLIC_UPLOAD_URL=http://localhost:3002/public/uploads
18-
SERVER_API_PREFIX=/api
19-
ADMIN_USER=admin
20-
ADMIN_PASSWD=reactpress
21-
22-
# Github OAuth Config
23-
GITHUB_CLIENT_ID=0
24-
GITHUB_CLIENT_SECRET=0
14+
SERVER_PUBLIC_UPLOAD_URL=http://localhost:3002/public/uploads

client/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const antdVariablesFilePath = path.resolve(__dirname, './antd-custom.less');
88

99
/** @type {import('next').NextConfig} */
1010
const nextConfig = {
11-
assetPrefix: config.CLIENT_ASSET_PREFIX,
11+
assetPrefix: config.CLIENT_ASSET_PREFIX || '/',
1212
i18n: {
1313
locales,
1414
defaultLocale,

0 commit comments

Comments
 (0)