aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

Next.js 13 serving content from build time only #3895

Closed pwzkrz closed 10 months ago

pwzkrz commented 10 months ago

Before opening, please confirm:

Amplify Hosting feature

SSR

Is your feature request related to a problem? Please describe:

I have a problem with next.js 13 site using app router it uses server components to fetch data, however it seems it only serves static content from build time and not fetch data on server side. setting manual revalidate time does not seem to work neither in layout nor in fetch functions. my build settings:

frontend:
  phases:
    preBuild:
      commands:
        - yarn install
    build:
      commands:
        - yarn run build
  artifacts:
    baseDirectory: .next
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*
      - .next/cache/**/*

Describe how you'd like this feature to work

i would expect that the content served would be no older than revalidate value

github-actions[bot] commented 10 months ago

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

pwzkrz commented 10 months ago

narrowed down to find that this seems to be exactly the same problem as here: https://github.com/aws-amplify/amplify-hosting/issues/3707

github-actions[bot] commented 10 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] commented 10 months ago

This issue has been automatically locked.