Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda