platform

@JvmName(name = "fatsbarpmijtdpkc")
suspend fun platform(value: Output<AppPlatform>)
@JvmName(name = "aytilgqxlvgjxvee")
suspend fun platform(value: AppPlatform?)

Parameters

value

The platform for the Amplify app. For a static app, set the platform type to WEB . For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE . For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC . If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to WEB_COMPUTE and set the artifacts baseDirectory to .next in the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .