Skip to content

Better API for different platforms #233

@IanMitchell

Description

@IanMitchell
export default new Application({
	applicationId: process.env.APPLICATION_ID!,
	publicKey: process.env.PUBLIC_KEY!,
	token: process.env.TOKEN!,
	platform:
		process.env.ENVIRONMENT === "production"
			? PlatformAlgorithm.VercelProd
			: PlatformAlgorithm.VercelDev,
}).addCommand(PingCommand);

The platform bit here is ugly. I can't wait for this to be standardized, but until then...

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew things ✨

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions