mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-09-24 14:00:40 +08:00
init flask api
This commit is contained in:
@@ -25,8 +25,7 @@ const ShowEntry: React.FC<{entry: Entry}> = ({entry}) => {
|
||||
);
|
||||
};
|
||||
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL;
|
||||
const API_URL_2 = process.env.NEXT_PUBLIC_API_URL_2;
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:5000/";
|
||||
|
||||
const Home: NextPage = () => {
|
||||
|
||||
@@ -76,7 +75,6 @@ const Home: NextPage = () => {
|
||||
</Head>
|
||||
<main>
|
||||
<p>1: {API_URL}</p>
|
||||
<p>2: {API_URL_2}</p>
|
||||
<Header page="index" />
|
||||
<ul>
|
||||
{entries.map((entry, i) => (
|
||||
|
||||
Reference in New Issue
Block a user