给所有请求都加上jwt,隐藏生成jwt的secret(放到.env中),隐藏app-secret(放在pm2运行配置文件中,后续直接读取环境配置即可)
This commit is contained in:
@@ -51,8 +51,8 @@ export default function Index() {
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof window !== 'undefined') {
|
||||
// setIsPort51708(window.location.port === '51708');
|
||||
setIsPort51708(window.location.port === '5178');
|
||||
setIsPort51708(window.location.port === '51708');
|
||||
// setIsPort51708(window.location.port === '5178');
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user