Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
Custom domain does not work in aws with serverless-next.js?

I am facing the same issue as Github issue but for a different use case. I am trying to add multiple instances of the application: Example code here.

With the domain added I am getting the same error:

Domain www.app.com was not found in your AWS account. 

So to achieve the multiple instances, I tried a hack changing the env-prod file to bucket="prod-appname". This gets deployed, but when I add an env-stage file to bucket="stage-appname", this creates a new bucket, but deploys it to the same CloudFront URL. Is there a way to fix any of them so that I can achieve multiple instances?

Thanks in advance

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

nextjsapp: component: "@sls-next/serverless-component@1.18.0" inputs: bucketName: < S3 bucket name >

use this in servereless.yml and s3 bucket should be created in us-esat-1 (N.virginia)

and then deploy then a cloud front is created where the bucket is your s3 bucket after note the ID of cloud front and change the serverless.yml as

nextjsapp: component: "@sls-next/serverless-component@1.18.0" inputs: bucketName: < S3 bucket name > cloudfront: distributionId:

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!