Skip to content

target: 'static' #21

@glennjacobs

Description

@glennjacobs

To allow static hosting, we probably need to include the following in the Nuxt config

  // Target (https://go.nuxtjs.dev/config-target)
  target: 'static',

This allows a Nuxt project to be generated for static hosting. I'm unsure how dynamic routes will cope with this, but having tested on a new plain Nuxt install it somehow handles dynamic routes, e.g. /pages/blog/_slug.vue

This gets away from the nasty 404.html issue and introduces a nice index.html file instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions