Replies: 2 comments 3 replies
-
if it is the typical CORS issue, then you have to configure it on the |
Beta Was this translation helpful? Give feedback.
-
@icyJoseph It’s not a typical CORS error. The error is coming because it is looking for font files that are not in the S3 bucket. After all, they were not in the If these files are created during build time, how can I upload the static files to S3 on build? Not sure where these files are located and no instructions on how to handle |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Using the
Nextjs 15
app router-based project and deploying onAWS Amplify
.The project is a
turborepo
setup, and the configuration files arenext.config.ts
amplify.yml
directory structure
After deployment, everything works, but the images come broken.
When I tried accessing them directly like https://app.feedal.io/logo/full_blue.svg, it gives a 404 response.
What did I try?
Uploaded all files from
public
directory tos3
and configured CloudFront to work as CDN, then the files are accessible using https://cdn.feedal.io/web/logo/full.blue.svg.Updated
next.config.ts
withHowever, starts getting other errors like
Also, the URL https://cdn.feedal.io/web/_next/static/media/569ce4b8f30dc480-s.p.woff2 gives a 404 error.
public
directory in the production directory from the application?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions