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

PNPM Monorepo Nextjs SSR Not working #3304

Closed
5 tasks done
rushi308 opened this issue Feb 14, 2023 · 5 comments
Closed
5 tasks done

PNPM Monorepo Nextjs SSR Not working #3304

rushi308 opened this issue Feb 14, 2023 · 5 comments
Labels
archived This issue has been locked. bug Something isn't working compute

Comments

@rushi308
Copy link

rushi308 commented Feb 14, 2023

Before opening, please confirm:

  • I have checked to see if my question is addressed in the FAQ.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

App Id

d23s4a8slavtvr

AWS Region

us-east-1

Amplify Hosting feature

Monorepo

Describe the bug

SSR is used with AWS Serverless Appsync GraphQL APIs in my pnpm Mono repository Nextjs app. I used AWS Amplify for hosting, however it returns a 500 error.

Expected behavior

It should work

Reproduction steps

  1. Go to https://main.d23s4a8slavtvr.amplifyapp.com and it should work

Build Settings

version: 1
applications:
  - frontend:
      phases:
        preBuild:
          commands:
            - npm i -g pnpm
            - pnpm add project-schema --filter client --workspace
            - pnpm i
        build:
          commands:
            - npm run build
      artifacts:
        baseDirectory: .next
        files:
          - '**/*'
      cache:
        paths:
          - node_modules/**/*
    appRoot: apps/client

Log output

# Put your logs below this line


Additional information

No response

@rushi308 rushi308 added bug Something isn't working pending-triage labels Feb 14, 2023
@ghost ghost self-assigned this Feb 17, 2023
@ghost
Copy link

ghost commented Feb 20, 2023

Hi @rushi308 👋🏽 we do not have monorepo support for SSR apps at this time but the team is aware of this and we are treating this as a priority.

@michrome
Copy link

Now available as a beta, Amplify Hosting has improved support for monorepo frameworks including npm/yarn/pnpm workspaces, Turborepo and Nx. If you'd like to try it out, please let me know your AWS Account ID number so we can flag you in. My email is [email protected].

@ghost ghost removed the investigating label Apr 14, 2023
@ghost ghost removed their assignment Apr 14, 2023
@ghost
Copy link

ghost commented May 12, 2023

We have recently launched support for Next.js applications using monorepos including the frameworks mentioned above. Please redeploy your applications to take advantage of this. Thank you!

@ghost ghost closed this as completed May 12, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the archived This issue has been locked. label May 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. bug Something isn't working compute
Projects
None yet
Development

No branches or pull requests

2 participants