mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix typo (#2674)
This commit is contained in:
parent
b1290c44d5
commit
329146f3c1
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ interface Product {
|
|||
|
||||
//let origin: string;
|
||||
const { mode } = import.meta.env;
|
||||
const origin = mode === 'develeopment' ? `http://localhost:3000` : `http://localhost:8085`;
|
||||
const origin = mode === 'develepment' ? `http://localhost:3000` : `http://localhost:8085`;
|
||||
|
||||
async function get<T>(endpoint: string, cb: (response: Response) => Promise<T>): Promise<T> {
|
||||
const response = await fetch(`${origin}${endpoint}`);
|
||||
|
|
Loading…
Reference in a new issue