diff options
author | 2022-02-28 17:04:03 -0500 | |
---|---|---|
committer | 2022-02-28 16:04:03 -0600 | |
commit | 329146f3c1e5e82bf83b788ace6660f39fb927d8 (patch) | |
tree | 3159de38cf3c616526c969fc2971dbbee44f9faa /examples/ssr/src/api.ts | |
parent | b1290c44d517802e2b8b18ab028925be39ebaf19 (diff) | |
download | astro-329146f3c1e5e82bf83b788ace6660f39fb927d8.tar.gz astro-329146f3c1e5e82bf83b788ace6660f39fb927d8.tar.zst astro-329146f3c1e5e82bf83b788ace6660f39fb927d8.zip |
Fix typo (#2674)
Diffstat (limited to 'examples/ssr/src/api.ts')
-rw-r--r-- | examples/ssr/src/api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ssr/src/api.ts b/examples/ssr/src/api.ts index 0ae8648c8..59619ade6 100644 --- a/examples/ssr/src/api.ts +++ b/examples/ssr/src/api.ts @@ -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}`); |