-
Notifications
You must be signed in to change notification settings - Fork 115
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
Completely Blank Site #3437
Comments
It works fine in Vercel ( https://hydra-headless-23cqoo6de-joelucky39.vercel.app ). I believe it's an issue with the way Amplify uses environment variables ( or can't use them ). |
#3436 I am also getting this issue |
As per #3428, a Next upgrade should fix this. |
Hi @joelucky39 👋🏽 What version of Next.js are you using? If you are using version 12 or later please try running the following AWS CLI commands: Update the application's platform: Update the branch framework: |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I'm using version 13. I'll update the platform and let you know. Thanks for your help. |
When I run the first command I get, "Unable to locate credentials. You can configure credentials by running "aws configure" I'll just stick with Vercel. Thanks. |
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. |
Before opening, please confirm:
App Id
d2ep79ifpnoq7t
AWS Region
us-east-1
Amplify Hosting feature
Frontend builds
Describe the bug
Using the provided link in the app https://main.d2ep79ifpnoq7t.amplifyapp.com nothing but a blank page loads.
All pages (routes) are blank. It's not exclusive to one page or the other. It's a complete fail.
I am only using the default URL provided by Amplify ( https://main.d2ep79ifpnoq7t.amplifyapp.com ). I want to point my DNS to the app but I'm not going to do it until I know if I have to use a different hosting service.
During build I received an error that I had to set images to unoptimized: true in next.config.js
I also had to set my build to next build instead of next build && next export. Because with that build setting pages with getServerSideProps could not be exported.
These are the build settings I am using.
version: 1
frontend:
phases:
preBuild:
commands: - npm ci
build:
commands: - npm run build
artifacts:
baseDirectory: .next
files: - '/*'
cache:
paths: - node_modules//*
Expected behavior
I expect to see the same site I see when I run next start locally.
Reproduction steps
Visit https://main.d2ep79ifpnoq7t.amplifyapp.com
Build Settings
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: