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

95
Views
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
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!