Skip to content

Better API for different platforms #233

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew things ✨

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions