aws-amplify / aws-amplify/amplify-hosting
Can't change framework in gen 2 app from the UI
- Dominant language
- Dockerfile
- Stars
- 481
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
### Environment information
```plain text
System:
OS: macOS 14.6.1
CPU: (12) arm64 Apple M2 Max
Memory: 184.50 MB / 32.00 GB
Shell: /opt/homebrew/bin/fish
Binaries:
Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
pnpm: 8.10.5 - ~/.nvm/versions/node/v18.15.0/bin/pnpm
NPM Packages:
@aws-amplify/auth-construct: Not Found
@aws-amplify/backend: Not Found
@aws-amplify/backend-auth: Not Found
@aws-amplify/backend-cli: 1.2.9
@aws-amplify/backend-data: Not Found
@aws-amplify/backend-deployer: 1.1.5
@aws-amplify/backend-function: Not Found
@aws-amplify/backend-output-schemas: 1.3.0
@aws-amplify/backend-output-storage: Not Found
@aws-amplify/backend-secret: 1.1.4
@aws-amplify/backend-storage: Not Found
@aws-amplify/cli-core: 1.1.3
@aws-amplify/client-config: 1.4.0
@aws-amplify/deployed-backend-client: 1.4.2
@aws-amplify/form-generator: 1.0.3
@aws-amplify/model-generator: 1.0.8
@aws-amplify/platform-core: 1.1.0
@aws-amplify/plugin-types: 1.3.0
@aws-amplify/sandbox: 1.2.3
@aws-amplify/schema-generator: 1.2.4
aws-amplify: Not Found
aws-cdk: 2.162.1
aws-cdk-lib: 2.162.1
typescript: 5.5.3
AWS environment variables:
AWS_STS_REGIONAL_ENDPOINTS = regional
AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables
```
### Describe the bug
I see Next.JS -SSR as the framework:

I don't know how to change this. I have a docusaurus site, which is a static site. Whenever I try to deploy, it tries to find next files to run.
I know I can change the platform with
```
aws amplify update-app --app-id d28gd4ifb9c9ul --platform WEB
```
But framework isn't listed in this. Additionally, I have a gen 2 app and that's a gen 1 cli command.
### Reproduction steps
I believe the issue is if you have 2 websites in the same folder, but it's not a mono repo, like so
```
/docusaurus
/nextjs-starter
package.json
```
But I would have to test that
Contributor guide
Research direction
Start with the Gen 2 hosting UI and the aws amplify update-app --app-id d28gd4ifb9c9ul --platform WEB command; the report says neither exposes a framework setting. Reproduce deployment for the Docusaurus and nextjs-starter layout, then verify that the static site uses the appropriate framework without searching for Next.js files. No repository file or test is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, next.js
- Domain
- ci-cd, cloud, devops, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100