Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

97
Visualizações
Nuxt - render simple html page(dynamic) without layout and styles

I am trying to render a simple HTML page in Nuxt,

I tried layouts/empty.vue

<template>
  <nuxt />
</template>

<script>
export default {
  components: {},
};
</script>

and page pages/simple.vue

<template>
<div>Redirecting to <a :href="dynamicUrl">{{dynamicUrl}}</a>.</div>
</template>
<script>
export default {
  layout: "empty",
  asyncData() {
   // ... code to get dynamicUrl for the user
  }
}
</script>

It works, but the page is loaded with styles, javascript other nuxt-related things. What I need is - just a simple HTML page(like a static page) but with dynamic content(without any styles and javascript files). How to do it in nuxt? This is what I need in the output:

  <!doctype html>
  <html lang="en">
  <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url=\'.....dynamicUrl'" />
    <title>Redirecting...</title>
  </head>
  <body>
     <div>Redirecting to <a :href="dynamicUrl">{{dynamicUrl}}</a>.</div>
  </body>
  </html>
about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda