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

161
Views
Serving Static files separately on S3 for next.js

I am trying to deploy next.JS on Kubernetes. But I also want all the static files to get served from s3. Is there any way to do that?

For Example. Currently, all the static files are being served from the local file system of the server.

<link rel="preload" href="/_next/static/chunks/main.js?ts=1616564196729" as="script">
<link rel="preload" href="/_next/static/chunks/webpack.js?ts=1616564196729" as="script">
<link rel="preload" href="/_next/static/chunks/pages/_app.js?ts=1616564196729" as="script">
<link rel="preload" href="/_next/static/chunks/pages/index.js?ts=1616564196729" as="script">
.
.
.
<script src="/_next/static/chunks/main.js?ts=1616564196729"></script>

But instead I want them to get served from S3 like below:

<link rel="preload" href="SOME_S3_URL/static/chunks/main.js?ts=1616564196729" as="script">
<link rel="preload" href="SOME_S3_URLt/static/chunks/webpack.js?ts=1616564196729" as="script">
<link rel="preload" href="SOME_S3_URL/static/chunks/pages/_app.js?ts=1616564196729" as="script">
<link rel="preload" href="SOME_S3_URL/static/chunks/pages/index.js?ts=1616564196729" as="script">
.
.
.
<script src="SOME_S3_URL/_next/static/chunks/main.js?ts=1616564196729"></script>
over 4 years ago · Santiago Trujillo
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!