mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-02-28 19:58:22 +00:00
Chore/convert to typescript (#60)
* Convert to using TypeScript Next.js v.9 allows converting an existing project to TS by simply renaming the files as TS files * Fix type errors: Type 'string' is not assignable to type 'number'. * Add mention about missing typings for javascript-time-ago * Add GA_INITIALIZED to window * Fix type error in feed transformers * Model MembershipInfoForm state and props with TS * Silence the typescript warning in MembershipInfoForm * Add threshold to Fader props * Fix Warning: Each child in a list should have a unique "key" prop. Sponsors don't have ids – name is probably unique and can be used as a key * Allow key as prop for SponsorLink * Add type of the props for SponsorLink
This commit is contained in:
committed by
Riku Rouvila
parent
bcc6619aee
commit
f4474523ad
5
components/api.ts
Normal file
5
components/api.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
const host = process.env.SERVER || "https://lit-plateau-4689.herokuapp.com/";
|
||||
|
||||
export default function getApiURL(path) {
|
||||
return host + path;
|
||||
}
|
||||
Reference in New Issue
Block a user