mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -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;
|
//let origin: string;
|
||||||
const { mode } = import.meta.env;
|
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> {
|
async function get<T>(endpoint: string, cb: (response: Response) => Promise<T>): Promise<T> {
|
||||||
const response = await fetch(`${origin}${endpoint}`);
|
const response = await fetch(`${origin}${endpoint}`);
|
||||||
|
|
Loading…
Reference in a new issue