feat(global) new api rule, NextImage support, test openresty

This commit is contained in:
lumither committed 2024-06-05 01:57:18 +08:00
1 parent ffb20b64f3
commit 56d673a9ec
9 files changed
+47 -13

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import axios from 'axios';
export default async function fetch_posts_list(): Promise<any> {
const response = await axios(`http://localhost:${ process.env.BACKEND_PORT }/api/get/post_list`);
const response = await axios(`${ process.env.BACKEND_URL }/get_post_list`);
if (response.status !== 200) {
throw new Error(response.statusText);
}