A Bit of Configuration: config.ts
For the client app to talk to the server, it, of course, has to know its address. The config.ts
file meets that need:
export const config: {
serverAddress: string, userEmail: string } =
{ serverAddress : "http://localhost", userEmail : user@human.com };
It’s quite simple: it’s just a literal object with a serverAddress property that gives the
address of the MailBag server. During development, this is likely to be localhost. Also,
note that it must contain the protocol prefix. This object also contains the userEmail that
provides your eMail address. I’m gonna guess that’s not your email address, so go ahead
and update it as appropriate! This file will be imported into the Worker classes as needed.
Hey, speaking of Worker classes, that’s exactly what’s up next!
Do'stlaringiz bilan baham: |