Open tytremblay opened 3 months ago
Hey @tytremblay, thank you for reaching out. Does the repository have a amplify.yml
file committed?
Could you let us know the framework being used?
It does not. Is tha required?
I'm just trying to deploy a vanilla react app with an express backend
@tytremblay while creating the app, did you select the checkbox for configuring the monorepo root directory for the react app? Also, do you have a next
dependency within your package.json
file? Can you share the package.json
files?
The amplify.yml
file by default is not required as the build settings are automatically detected by the Amplify Hosting service.
It looks like this is a caching issue? I just started trying to createa backend app for my monorepo and the form is already filled out for my frontend app that i've recently deployed:
I've attached the package.json for my nx monorepo and the package.json for the backend library i just created.
Hey @tytremblay, thank you for information. it does appear the package.json
for the nx monorepo
does contain both the react and next dependancies. Which the console appears to be defaulting to nextJS.
backend app for my monorepo and the form is already filled out for my frontend app
this is odd, could you provide us a screenshot of the monorepro repository?
Hi @tytremblay 👋 , I was able to reproduce the outlined behavior with a Nx monorepo setup which consisted of React and Next.js apps. It seems that when a next
dependency is included in the package.json
file it takes precedence for framework detection. Thus, I am marking this as a bug.
In the meantime, as a workaround you can manually update the app's platform and framework as follows:
update-app
CLI command to update the app's platform:
`aws amplify update-app --app-id <value> --platform WEB`
update-branch
CLI command to update the branch's framework:
aws amplify update-branch --app-id <value> --branch-name <value> --framework 'React'
Environment information
Description
I do not have a Next.js app in my monorepo, Amplify Gen2 "auto-detects" Next.js whenever I select the app I want to deploy.