Skip to content

Commit

Permalink
Fix typo (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
millette committed Feb 28, 2022
1 parent b1290c4 commit 329146f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ssr/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Product {

//let origin: string;
const { mode } = import.meta.env;
const origin = mode === 'develeopment' ? `http:https://localhost:3000` : `http:https://localhost:8085`;
const origin = mode === 'develepment' ? `http:https://localhost:3000` : `http:https://localhost:8085`;

async function get<T>(endpoint: string, cb: (response: Response) => Promise<T>): Promise<T> {
const response = await fetch(`${origin}${endpoint}`);
Expand Down

0 comments on commit 329146f

Please sign in to comment.