Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better API for different platforms #233

Open
IanMitchell opened this issue Jan 27, 2023 · 0 comments
Open

Better API for different platforms #233

IanMitchell opened this issue Jan 27, 2023 · 0 comments
Labels
Feature New things ✨

Comments

@IanMitchell
Copy link
Owner

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

@IanMitchell IanMitchell added the Feature New things ✨ label Jan 27, 2023
@IanMitchell IanMitchell added this to the Interaction Kit Release milestone Jan 27, 2023
@IanMitchell IanMitchell added this to To do in interaction-kit via automation Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New things ✨
Projects
Development

No branches or pull requests

1 participant