Relative Content

Tag Archive for next.jsfrontendhostingaws-amplify

Hosting next.js frontend on AWS Amplify seperately from the backend in a monorepo

I have a project which consists of the frontend using next.js and backend using Amplify. Initially, I was working on the backend separately using just lambdas and other services while my colleague was working on the frontend. The structure of my project is as follows:
Project Structure
Now, I was actively pushing the backend to AWS Amplify. Now that my collegueue has given me the frontend code, I added it to my repo and am trying to host the frontend. The problem is that when I try doing that, in the build section, I get the following error: